summaryrefslogtreecommitdiff
path: root/devel/libgetopt
diff options
context:
space:
mode:
authortnn <tnn>2008-02-22 01:27:55 +0000
committertnn <tnn>2008-02-22 01:27:55 +0000
commite505168f53d7f17a70a441476ec97655a4f56abe (patch)
tree35950c8ac8a0a9075d9d3680359725eaa658d68b /devel/libgetopt
parentcfa9d8be9bf6936cce16e4fbcfe79eea5fa7282c (diff)
downloadpkgsrc-e505168f53d7f17a70a441476ec97655a4f56abe.tar.gz
Update to libgetopt-1.4.3.
On IRIX, getopt.h is expected to provide extern declarations of optind et al. (Not unistd.h) Do it here since we shadow the system header. Part of PR pkg/38054
Diffstat (limited to 'devel/libgetopt')
-rw-r--r--devel/libgetopt/Makefile4
-rw-r--r--devel/libgetopt/files/getopt.h8
2 files changed, 9 insertions, 3 deletions
diff --git a/devel/libgetopt/Makefile b/devel/libgetopt/Makefile
index 73d522a7e74..fb0fe847542 100644
--- a/devel/libgetopt/Makefile
+++ b/devel/libgetopt/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.27 2008/02/16 23:38:42 tnn Exp $
+# $NetBSD: Makefile,v 1.28 2008/02/22 01:27:55 tnn Exp $
#
-DISTNAME= libgetopt-1.4.2
+DISTNAME= libgetopt-1.4.3
CATEGORIES= pkgtools sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/devel/libgetopt/files/getopt.h b/devel/libgetopt/files/getopt.h
index 2dcd12d459f..2c79b0fefb7 100644
--- a/devel/libgetopt/files/getopt.h
+++ b/devel/libgetopt/files/getopt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: getopt.h,v 1.4 2005/03/10 19:19:47 tv Exp $ */
+/* $NetBSD: getopt.h,v 1.5 2008/02/22 01:27:55 tnn Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -72,6 +72,12 @@ int getopt_long(int, char * const *, const char *,
/* On some platforms, this is in libc, but not in a system header */
extern int optreset;
+#ifdef __sgi
+extern char *optarg;
+extern int opterr;
+extern int optind;
+extern int optopt;
+#endif
#ifdef __cplusplus
};