diff options
author | richard <richard@pkgsrc.org> | 2014-09-13 11:03:17 +0000 |
---|---|---|
committer | richard <richard@pkgsrc.org> | 2014-09-13 11:03:17 +0000 |
commit | d7bac3d51c7ad50207819d78ac8cf5d617815fa2 (patch) | |
tree | 009e3f11a325714ecbd474fadb2852ae587376e4 | |
parent | 9e481b49ea61b2d633b3412e383b7bb4e22298fc (diff) | |
download | pkgsrc-d7bac3d51c7ad50207819d78ac8cf5d617815fa2.tar.gz |
SunOS getopt doesn't define/use optreset
-rw-r--r-- | devel/libgetopt/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/libgetopt/Makefile b/devel/libgetopt/Makefile index 6db457ef7fb..24dcfea7b84 100644 --- a/devel/libgetopt/Makefile +++ b/devel/libgetopt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2014/09/11 21:48:34 jperkin Exp $ +# $NetBSD: Makefile,v 1.37 2014/09/13 11:03:17 richard Exp $ # DISTNAME= libgetopt-1.4.6 @@ -17,7 +17,8 @@ WRKSRC= ${WRKDIR}/libgetopt .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "AIX" || ${OPSYS} == "HPUX" || \ - ${OPSYS} == "OSF1" || ${OPSYS} == "Linux" + ${OPSYS} == "OSF1" || ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" + CFLAGS+= -DREPLACE_GETOPT .endif CFLAGS.OSF1+= -I. # stdio.h includes <getopt.h>, make sure it's our copy |