diff options
author | dholland <dholland@pkgsrc.org> | 2013-04-14 01:36:50 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2013-04-14 01:36:50 +0000 |
commit | dc0a01af6ee9fb7941265e02c0f699740334dfb4 (patch) | |
tree | 913e6e10e83689e933fc38e9aab85f104a4c45d8 | |
parent | 38c666133f3c78fbe835fa0a8c96f4d2fc5c7145 (diff) | |
download | pkgsrc-dc0a01af6ee9fb7941265e02c0f699740334dfb4.tar.gz |
Isolate this package's private getopt implementation from the system one.
Should fix the Solaris build.
-rw-r--r-- | devel/sunifdef/distinfo | 3 | ||||
-rw-r--r-- | devel/sunifdef/patches/patch-src_args.c | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/devel/sunifdef/distinfo b/devel/sunifdef/distinfo index bbec4cdbb4d..0b74b667016 100644 --- a/devel/sunifdef/distinfo +++ b/devel/sunifdef/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2008/05/22 03:10:01 bjs Exp $ +$NetBSD: distinfo,v 1.2 2013/04/14 01:36:50 dholland Exp $ SHA1 (sunifdef-3.1.3.tar.gz) = edc67ad426402a90d9aa5a8b6316412b1a6f5a18 RMD160 (sunifdef-3.1.3.tar.gz) = 8f70096f8045d4240e005f8fcf969b4981f732b6 Size (sunifdef-3.1.3.tar.gz) = 443142 bytes +SHA1 (patch-src_args.c) = 4c443ea5e127a41404489b6e79fe38fffd670276 diff --git a/devel/sunifdef/patches/patch-src_args.c b/devel/sunifdef/patches/patch-src_args.c new file mode 100644 index 00000000000..ca0cae790ee --- /dev/null +++ b/devel/sunifdef/patches/patch-src_args.c @@ -0,0 +1,23 @@ +$NetBSD: patch-src_args.c,v 1.1 2013/04/14 01:36:50 dholland Exp $ + +- Isolate this file's private getopt implementation from the system +one, as on some platforms (e.g. Solaris) the system one appears and +provides incompatible declarations. + +--- src/args.c~ 2008-01-22 20:11:22.000000000 +0000 ++++ src/args.c +@@ -49,6 +49,14 @@ + #include <string.h> + #include <stdarg.h> + ++/* ++ * In case stdio.h brings in the system getopt declarations ++ */ ++#define optind myoptind ++#define optopt myoptopt ++#define optarg myoptarg ++#define getopt mygetopt ++#define getopt_long mygetopt_long + + /*!\ingroup args_module args_interface args_internals + *\file args.c |