pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libgetopt libgetopt-1.4.4:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/685a4434497f
branches:  trunk
changeset: 551214:685a4434497f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Dec 10 15:30:29 2008 +0000

description:
libgetopt-1.4.4:
If getopt.h is included, the getopt extension is really wanted. So
remove check for _XOPEN_SOURCE and _POSIX_SOURCE, resolving errors on
AIX.

diffstat:

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

diffs (38 lines):

diff -r ee591087ced9 -r 685a4434497f devel/libgetopt/Makefile
--- a/devel/libgetopt/Makefile  Wed Dec 10 12:32:27 2008 +0000
+++ b/devel/libgetopt/Makefile  Wed Dec 10 15:30:29 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2008/03/03 17:45:35 jlam Exp $
+# $NetBSD: Makefile,v 1.30 2008/12/10 15:30:29 joerg Exp $
 #
 
-DISTNAME=      libgetopt-1.4.3
+DISTNAME=      libgetopt-1.4.4
 CATEGORIES=    pkgtools sysutils
 MASTER_SITES=  # empty
 DISTFILES=     # empty
diff -r ee591087ced9 -r 685a4434497f devel/libgetopt/files/getopt.h
--- a/devel/libgetopt/files/getopt.h    Wed Dec 10 12:32:27 2008 +0000
+++ b/devel/libgetopt/files/getopt.h    Wed Dec 10 15:30:29 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getopt.h,v 1.6 2008/04/29 05:46:09 martin Exp $        */
+/*     $NetBSD: getopt.h,v 1.7 2008/12/10 15:30:29 joerg Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,6 @@
 /*
  * Gnu like getopt_long() and BSD4.4 getsubopt()/optreset extensions
  */
-#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
 #define no_argument        0
 #define required_argument  1
 #define optional_argument  2
@@ -75,7 +74,5 @@
 #ifdef __cplusplus
 };
 #endif
-
-#endif
  
 #endif /* !_GETOPT_H_ */



Home | Main Index | Thread Index | Old Index