Update upstream source from tag 'upstream/2.23'
[debian/cpmtools] / getopt.c
index 157ab4c7e83e87e9af7e7a329f6962bcd3140500..a90c9e5eadc027bf998b1981204a6b20562f3d81 100644 (file)
--- a/getopt.c
+++ b/getopt.c
@@ -29,7 +29,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 
 #ifdef __VMS
 # include <unixlib.h>