Include <unistd.h> if available.
authorAndreas Schwab <schwab@suse.de>
Mon, 30 Aug 1999 15:05:17 +0000 (15:05 +0000)
committerAndreas Schwab <schwab@suse.de>
Mon, 30 Aug 1999 15:05:17 +0000 (15:05 +0000)
lib-src/test-distrib.c

index 01897b8..79d899a 100644 (file)
 
 #include <stdio.h>
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifndef O_RDONLY
 #define O_RDONLY 0
 #endif
 
-
 /* Break string in two parts to avoid buggy C compilers that ignore characters
    after nulls in strings.  */