diff options
author | tnn <tnn@pkgsrc.org> | 2008-02-22 01:27:55 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2008-02-22 01:27:55 +0000 |
commit | 9f7614b77affe67bcb353941df12556413f4171c (patch) | |
tree | 35950c8ac8a0a9075d9d3680359725eaa658d68b /devel/libgetopt | |
parent | 6275ff6cbe5723c2e4b36e0174e2142fd76a729e (diff) | |
download | pkgsrc-9f7614b77affe67bcb353941df12556413f4171c.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/Makefile | 4 | ||||
-rw-r--r-- | devel/libgetopt/files/getopt.h | 8 |
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 }; |