Fix compilation on FreeBSD
authorCraig Leres <leres@ee.lbl.gov>
Wed, 1 Aug 2012 08:50:16 +0000 (10:50 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 1 Aug 2012 08:50:16 +0000 (10:50 +0200)
examples/baud_test.c
examples/bitbang.c
examples/bitbang2.c
examples/bitbang_ft2232.c
examples/find_all.c
examples/simple.c

index 3116fcd..32b9beb 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <sys/time.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <ftdi.h>
 
index e78142e..c8b3efb 100644 (file)
@@ -1,6 +1,7 @@
 /* This program is distributed under the GPL, version 2 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #ifdef __WIN32__
 #define sleep(x) Sleep(x)
index 1e86f23..df34bba 100644 (file)
@@ -30,6 +30,7 @@
 
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #ifdef __WIN32__
 #define usleep(x) Sleep((x+999)/1000)
index 6cce45a..3db45a1 100644 (file)
@@ -9,6 +9,7 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 #ifdef __WIN32__
 #define sleep(x) Sleep(x)
index bcb2290..936a824 100644 (file)
@@ -6,6 +6,7 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <ftdi.h>
 
 int main(void)
index 8abd7b3..0fcf4e8 100644 (file)
@@ -6,6 +6,7 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <ftdi.h>
 
 int main(void)