diff options
author | cube <cube> | 2003-09-30 09:43:59 +0000 |
---|---|---|
committer | cube <cube> | 2003-09-30 09:43:59 +0000 |
commit | 70a040e0b613d4ec46d90a9bd4d34b27e6e1a654 (patch) | |
tree | 94308ef957c597b0360db19134b58d598a94b604 /audio/mp3blaster/patches/patch-aj | |
parent | 6efe866504c2877bc7871b32fbeb2980f27c6862 (diff) | |
download | pkgsrc-70a040e0b613d4ec46d90a9bd4d34b27e6e1a654.tar.gz |
Make this correctly compile with gcc3, by reorganizing the way it pulls
up getop_long_only implementation. Patch sent to the author.
Ok'd by seb@.
Diffstat (limited to 'audio/mp3blaster/patches/patch-aj')
-rw-r--r-- | audio/mp3blaster/patches/patch-aj | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/mp3blaster/patches/patch-aj b/audio/mp3blaster/patches/patch-aj new file mode 100644 index 00000000000..18b7672afcc --- /dev/null +++ b/audio/mp3blaster/patches/patch-aj @@ -0,0 +1,31 @@ +$NetBSD: patch-aj,v 1.1 2003/09/30 09:44:00 cube Exp $ + +--- getopt/getopt.h.orig 2003-09-29 14:28:05.000000000 +0200 ++++ getopt/getopt.h +@@ -97,6 +97,7 @@ struct option + #define optional_argument 2 + + #if defined (__STDC__) && __STDC__ ++#if 0 + #ifdef __GNU_LIBRARY__ + /* Many other libraries have conflicting prototypes for getopt, with + differences in the consts, in stdlib.h. To avoid compilation +@@ -107,6 +108,7 @@ extern int getopt (); + #endif /* __GNU_LIBRARY__ */ + extern int getopt_long (int argc, char *const *argv, const char *shortopts, + const struct option *longopts, int *longind); ++#endif + extern int getopt_long_only (int argc, char *const *argv, + const char *shortopts, + const struct option *longopts, int *longind); +@@ -117,8 +119,10 @@ extern int _getopt_internal (int argc, c + const struct option *longopts, int *longind, + int long_only); + #else /* not __STDC__ */ ++#if 0 + extern int getopt (); + extern int getopt_long (); ++#endif + extern int getopt_long_only (); + + extern int _getopt_internal (); |