From 6181adfa654c5b4308270af03df997f9980426d0 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 11 Feb 2005 17:29:06 +0000 Subject: Interix fix: optreset exists, but tries to pretend it doesn't. --- devel/libgetopt/Makefile | 3 ++- devel/libgetopt/files/getopt.h | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'devel') 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 -- cgit v1.2.3