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:
parent
918a890f2d
commit
7104b3acb7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6046
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user