# HG changeset patch # User Michiel Broek # Date 1451591548 -3600 # Node ID 1992db823b7ef4501d9d9fb5ab1cf6d842351740 # Parent 0e6a1163e6e37a92331a46a978c36f0db4146c43 Fixed compiling on real Pi's diff -r 0e6a1163e6e3 -r 1992db823b7e brewco/util.c --- a/brewco/util.c Sun Dec 27 20:52:52 2015 +0100 +++ b/brewco/util.c Thu Dec 31 20:52:28 2015 +0100 @@ -24,7 +24,9 @@ #include "util.h" #include "slcd.h" - +#ifdef HAVE_WIRINGPI_H +extern int lcdHandle; +#endif extern int slcdHandle; @@ -142,7 +144,7 @@ } - +#ifndef HAVE_WIRINGPI_H long millis(void) { struct timespec now; @@ -150,7 +152,7 @@ clock_gettime(CLOCK_REALTIME , &now); return ((now.tv_sec * 1000000000) + now.tv_nsec) / 1000000; } - +#endif void hlt_status(int value) diff -r 0e6a1163e6e3 -r 1992db823b7e brewco/util.h --- a/brewco/util.h Sun Dec 27 20:52:52 2015 +0100 +++ b/brewco/util.h Thu Dec 31 20:52:28 2015 +0100 @@ -5,7 +5,9 @@ int mkdirs(char *, mode_t); int file_exist(char *, int); int file_cp(char *, char *); +#ifndef HAVE_WIRINGPI_H long millis(void); +#endif void hlt_status(int); void mlt_status(int); void pump_status(int);