1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Include <unistd.h> for getopt() prototypes if BSD >= 199506 (Lite2).

This commit is contained in:
Satoshi Asami 1997-03-28 11:12:10 +00:00
parent 918a890f2d
commit 7104b3acb7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6046

View File

@ -1,7 +1,7 @@
diff -ud work/plor/main.c src/main.c
--- work/plor/main.c Sun Oct 27 09:24:00 1996
+++ ./main.c Mon Dec 30 09:40:07 1996
@@ -19,10 +19,15 @@
@@ -19,10 +19,20 @@
*/
@ -13,6 +13,11 @@ diff -ud work/plor/main.c src/main.c
#include <stdlib.h>
+#if !defined(BSD)
#include <getopt.h>
+#else
+#if BSD >= 199506
+/* Lite2, need getopt() prototypes */
+#include <unistd.h>
+#endif
+#endif
/* will be included when we will have locale support