Browse Source

Semi-Merge commit '00f7688' into cg_merges_20130523a (gitignore and a missing srcdir, plus include reordering)

Conflicts:
	.gitignore
	Makefile.am
	compat.h
	configure.ac
	driver-bitforce.c
	driver-icarus.c
	driver-ztex.c
	elist.h
	logging.c
	miner.c
	miner.h
Luke Dashjr 12 years ago
parent
commit
2883204de2
6 changed files with 8 additions and 4 deletions
  1. 1 0
      .gitignore
  2. 1 1
      Makefile.am
  3. 1 1
      driver-icarus.c
  4. 1 1
      driver-ztex.c
  5. 2 1
      fpgautils.c
  6. 2 0
      lib/signal.in.h

+ 1 - 0
.gitignore

@@ -34,6 +34,7 @@ mingw32-config.cache
 *~
 *~
 *.orig
 *.orig
 *.rej
 *.rej
+*.swp
 *.kate-swp
 *.kate-swp
 
 
 ext_deps
 ext_deps

+ 1 - 1
Makefile.am

@@ -136,7 +136,7 @@ endif
 if HAS_ZTEX
 if HAS_ZTEX
 bfgminer_SOURCES += driver-ztex.c libztex.c libztex.h
 bfgminer_SOURCES += driver-ztex.c libztex.c libztex.h
 bitstreamsdir = $(bindir)/bitstreams
 bitstreamsdir = $(bindir)/bitstreams
-dist_bitstreams_DATA = bitstreams/*
+dist_bitstreams_DATA = $(top_srcdir)/bitstreams/*
 endif
 endif
 
 
 bin_PROGRAMS += bfgminer-rpc
 bin_PROGRAMS += bfgminer-rpc

+ 1 - 1
driver-icarus.c

@@ -30,6 +30,7 @@
  */
  */
 
 
 #include "config.h"
 #include "config.h"
+#include "miner.h"
 
 
 #ifdef WIN32
 #ifdef WIN32
 #include <winsock2.h>
 #include <winsock2.h>
@@ -62,7 +63,6 @@
 #include "dynclock.h"
 #include "dynclock.h"
 #include "elist.h"
 #include "elist.h"
 #include "icarus-common.h"
 #include "icarus-common.h"
-#include "miner.h"
 #include "fpgautils.h"
 #include "fpgautils.h"
 
 
 // The serial I/O speed - Linux uses a define 'B115200' in bits/termios.h
 // The serial I/O speed - Linux uses a define 'B115200' in bits/termios.h

+ 1 - 1
driver-ztex.c

@@ -25,13 +25,13 @@
 
 
 #include "config.h"
 #include "config.h"
 
 
+#include "miner.h"
 #include <unistd.h>
 #include <unistd.h>
 #include <sha2.h>
 #include <sha2.h>
 
 
 #include "deviceapi.h"
 #include "deviceapi.h"
 #include "dynclock.h"
 #include "dynclock.h"
 #include "fpgautils.h"
 #include "fpgautils.h"
-#include "miner.h"
 #include "libztex.h"
 #include "libztex.h"
 
 
 #define GOLDEN_BACKLOG 5
 #define GOLDEN_BACKLOG 5

+ 2 - 1
fpgautils.c

@@ -22,6 +22,8 @@
 #include <dirent.h>
 #include <dirent.h>
 #include <string.h>
 #include <string.h>
 
 
+#include "miner.h"
+
 #ifndef WIN32
 #ifndef WIN32
 #include <errno.h>
 #include <errno.h>
 #include <termios.h>
 #include <termios.h>
@@ -59,7 +61,6 @@ enum {
 
 
 #include "elist.h"
 #include "elist.h"
 #include "logging.h"
 #include "logging.h"
-#include "miner.h"
 #include "fpgautils.h"
 #include "fpgautils.h"
 
 
 #define SEARCH_NEEDLES_BEGIN()  {  \
 #define SEARCH_NEEDLES_BEGIN()  {  \

+ 2 - 0
lib/signal.in.h

@@ -20,6 +20,8 @@
 #endif
 #endif
 @PRAGMA_COLUMNS@
 @PRAGMA_COLUMNS@
 
 
+#include "config.h"
+
 #if defined __need_sig_atomic_t || defined __need_sigset_t
 #if defined __need_sig_atomic_t || defined __need_sigset_t
 /* Special invocation convention inside glibc header files.  */
 /* Special invocation convention inside glibc header files.  */