Browse Source

Omit add_serial_all code when serial support is not wanted

Luke Dashjr 12 years ago
parent
commit
0e6797b3b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -587,6 +587,7 @@ char *set_request_diff(const char *arg, float *p)
 	return NULL;
 	return NULL;
 }
 }
 
 
+#ifdef USE_FPGA_SERIAL
 #ifdef HAVE_LIBUDEV
 #ifdef HAVE_LIBUDEV
 #include <libudev.h>
 #include <libudev.h>
 #endif
 #endif
@@ -686,7 +687,6 @@ tryagain: ;
 #endif
 #endif
 }
 }
 
 
-#ifdef USE_FPGA_SERIAL
 static char *add_serial(char *arg)
 static char *add_serial(char *arg)
 {
 {
 	char *p = strchr(arg, ':');
 	char *p = strchr(arg, ':');