git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3b92d47
)
Fix compilation if async mode is disabled
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Wed, 7 Jul 2010 13:52:11 +0000 (15:52 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Wed, 7 Jul 2010 13:52:11 +0000 (15:52 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
5138e09
..
bbbeb9a
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-38,7
+38,6
@@
/* stuff needed for async write */
#ifdef LIBFTDI_LINUX_ASYNC_MODE
#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/select.h>
#include <sys/types.h>
#include <unistd.h>
@@
-78,6
+77,10
@@
int gettimeofday( struct timeval *tv, void null)
/* Warning: Timezone not handled (and not needed here) */
return 0;
}
+#else
+ // Include sys/time.h on non-Windows platforms
+ // as gettimeofday() needs it.
+ #include <sys/time.h>
#endif
/**