pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libgetopt Interix fix: optreset exists, but <uni...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/235ddbec8d6b
branches:  trunk
changeset: 488904:235ddbec8d6b
user:      tv <tv%pkgsrc.org@localhost>
date:      Fri Feb 11 17:29:06 2005 +0000

description:
Interix fix: optreset exists, but <unistd.h> tries to pretend it doesn't.

diffstat:

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

diffs (34 lines):

diff -r 0eec4999b381 -r 235ddbec8d6b devel/libgetopt/Makefile
--- a/devel/libgetopt/Makefile  Fri Feb 11 17:01:29 2005 +0000
+++ b/devel/libgetopt/Makefile  Fri Feb 11 17:29:06 2005 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2004/12/12 17:16:27 recht Exp $
+# $NetBSD: Makefile,v 1.16 2005/02/11 17:29:06 tv Exp $
 #
 
 DISTNAME=      libgetopt-${VERS}
+PKGREVISION=   1
 CATEGORIES=    pkgtools sysutils
 MASTER_SITES=  ${MASTER_SITE_LOCAL}
 # MASTER_SITES=        ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-current/src/lib/libc/stdlib/ \
diff -r 0eec4999b381 -r 235ddbec8d6b devel/libgetopt/files/getopt.h
--- a/devel/libgetopt/files/getopt.h    Fri Feb 11 17:01:29 2005 +0000
+++ b/devel/libgetopt/files/getopt.h    Fri Feb 11 17:29:06 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getopt.h,v 1.2 2000/10/18 11:16:59 wiz Exp $   */
+/*     $NetBSD: getopt.h,v 1.3 2005/02/11 17:29:06 tv Exp $    */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -67,6 +67,11 @@
 __BEGIN_DECLS
 int getopt_long __P((int, char * const *, const char *,
     const struct option *, int *));
+
+#ifdef __INTERIX
+/* XXX this is in libc, but not in a system header */
+extern int optreset;
+#endif
 __END_DECLS
 #endif
  



Home | Main Index | Thread Index | Old Index