summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorbad <bad@pkgsrc.org>1999-04-29 17:05:49 +0000
committerbad <bad@pkgsrc.org>1999-04-29 17:05:49 +0000
commit3a8f481f4f1afd83ea838b0b215761b644fc8db9 (patch)
treebe649558e03b2a15d22068fd6aab70bec2a20224 /devel
parent8d0119c40a934afe8d5513bc6770a5b47659234a (diff)
downloadpkgsrc-3a8f481f4f1afd83ea838b0b215761b644fc8db9.tar.gz
Provide getopt() prototype and externs in include/unistd.h.
From Andreas Gustafsson PR #7434.
Diffstat (limited to 'devel')
-rw-r--r--devel/mit-pthreads/patches/patch-bj16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/mit-pthreads/patches/patch-bj b/devel/mit-pthreads/patches/patch-bj
new file mode 100644
index 00000000000..90f55708693
--- /dev/null
+++ b/devel/mit-pthreads/patches/patch-bj
@@ -0,0 +1,16 @@
+$NetBSD: patch-bj,v 1.1 1999/04/29 17:05:49 bad Exp $
+
+--- include/unistd.h.orig Thu Apr 25 05:17:47 1996
++++ include/unistd.h Thu Apr 29 18:49:31 1999
+@@ -176,6 +176,11 @@
+ unsigned ualarm __P((unsigned, unsigned));
+ void usleep __P((unsigned));
+ int vfork __P((void));
++int getopt __P((int, char * const *, const char *));
++extern char *optarg; /* getopt(3) external variables */
++extern int opterr;
++extern int optind;
++extern int optopt;
+
+ #endif /* !_POSIX_SOURCE */
+ __END_DECLS