summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-02-11 17:29:06 +0000
committertv <tv@pkgsrc.org>2005-02-11 17:29:06 +0000
commitf3db71ac6f1783b6574ff9cebffb9f0b6794a261 (patch)
tree3b446a8e1344a92c1051a4b1d608b31425a49fc7 /devel
parent8ad0c47da5be673f6f9432a68114d998352d5c8e (diff)
downloadpkgsrc-f3db71ac6f1783b6574ff9cebffb9f0b6794a261.tar.gz
Interix fix: optreset exists, but <unistd.h> tries to pretend it doesn't.
Diffstat (limited to 'devel')
-rw-r--r--devel/libgetopt/Makefile3
-rw-r--r--devel/libgetopt/files/getopt.h7
2 files changed, 8 insertions, 2 deletions
diff --git a/devel/libgetopt/Makefile b/devel/libgetopt/Makefile
index d34e5ff3060..95cba5b9ab8 100644
--- a/devel/libgetopt/Makefile
+++ b/devel/libgetopt/Makefile
@@ -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 --git a/devel/libgetopt/files/getopt.h b/devel/libgetopt/files/getopt.h
index 2ae669d09c6..ba0975f3d1f 100644
--- a/devel/libgetopt/files/getopt.h
+++ b/devel/libgetopt/files/getopt.h
@@ -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 @@ struct option {
__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