diff options
author | asami <asami@FreeBSD.org> | 1997-03-28 19:12:10 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-03-28 19:12:10 +0800 |
commit | 8522aa64c5c92125cc0982e7b118ad334c187d41 (patch) | |
tree | d03c93bdcb888ad7233b255052d7b0ca65fad0cb /news | |
parent | 0946e13071ab23260629aa194f9159611909f06a (diff) | |
download | freebsd-ports-gnome-8522aa64c5c92125cc0982e7b118ad334c187d41.tar.gz freebsd-ports-gnome-8522aa64c5c92125cc0982e7b118ad334c187d41.tar.zst freebsd-ports-gnome-8522aa64c5c92125cc0982e7b118ad334c187d41.zip |
Include <unistd.h> for getopt() prototypes if BSD >= 199506 (Lite2).
Diffstat (limited to 'news')
-rw-r--r-- | news/plor/files/patch-ab | 7 |
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 |