pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libgetopt Update to libgetopt-1.4.3.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/873644f81675
branches:  trunk
changeset: 538964:873644f81675
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Feb 22 01:27:55 2008 +0000

description:
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:

 devel/libgetopt/Makefile       |  4 ++--
 devel/libgetopt/files/getopt.h |  8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 5fe72e77df95 -r 873644f81675 devel/libgetopt/Makefile
--- a/devel/libgetopt/Makefile  Fri Feb 22 01:16:58 2008 +0000
+++ b/devel/libgetopt/Makefile  Fri Feb 22 01:27:55 2008 +0000
@@ -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 -r 5fe72e77df95 -r 873644f81675 devel/libgetopt/files/getopt.h
--- a/devel/libgetopt/files/getopt.h    Fri Feb 22 01:16:58 2008 +0000
+++ b/devel/libgetopt/files/getopt.h    Fri Feb 22 01:27:55 2008 +0000
@@ -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 @@
 
 /* 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
 };



Home | Main Index | Thread Index | Old Index