]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Check HAVE_UNISTD_H.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 7 Nov 2005 21:35:35 +0000 (22:35 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 7 Nov 2005 21:35:35 +0000 (22:35 +0100)
Rev: src/nettle/examples/nettle-benchmark.c:1.18

examples/nettle-benchmark.c

index 294028dd025b2da634bf7696b8d6411aa644c454..efef7007ee31496d1db64d0bc084e75b66f9aed4 100644 (file)
@@ -37,7 +37,9 @@
 #include <time.h>
 
 /* For getopt */
-#include <unistd.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
 #include "aes.h"
 #include "arcfour.h"