summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-03-28 11:12:10 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-03-28 11:12:10 +0000
commit7104b3acb7b4ca2393710722915249751e5edffa (patch)
tree167cba2bf2bb9b26d61942f5bd28ff17884b9f96 /news
parentFiix master site's pathname. (diff)
Include <unistd.h> for getopt() prototypes if BSD >= 199506 (Lite2).
Notes
Notes: svn path=/head/; revision=6046
Diffstat (limited to 'news')
-rw-r--r--news/plor/files/patch-ab7
1 files changed, 6 insertions, 1 deletions
diff --git a/news/plor/files/patch-ab b/news/plor/files/patch-ab
index 7f2d360cf29e..55b330614a18 100644
--- a/news/plor/files/patch-ab
+++ b/news/plor/files/patch-ab
@@ -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