summaryrefslogtreecommitdiff
path: root/audio/mpg123
diff options
context:
space:
mode:
authormartin <martin>2002-02-27 21:37:40 +0000
committermartin <martin>2002-02-27 21:37:40 +0000
commit1b6f78d5524f33b2313f5eec94b0ecfa5f6b8437 (patch)
treed468759fae5427f67772a4b6ba4cd02fee1fadc6 /audio/mpg123
parent30f0101b0751902bcf5389262628f211567b37ac (diff)
downloadpkgsrc-1b6f78d5524f33b2313f5eec94b0ecfa5f6b8437.tar.gz
Some stupid people can not tell "int" from "long". Some of them dare
to cast "void*" to one or the other.
Diffstat (limited to 'audio/mpg123')
-rw-r--r--audio/mpg123/distinfo4
-rw-r--r--audio/mpg123/patches/patch-am13
-rw-r--r--audio/mpg123/patches/patch-an19
3 files changed, 35 insertions, 1 deletions
diff --git a/audio/mpg123/distinfo b/audio/mpg123/distinfo
index 9abf4cc22b2..c528506a5b5 100644
--- a/audio/mpg123/distinfo
+++ b/audio/mpg123/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2002/02/22 13:17:54 simonb Exp $
+$NetBSD: distinfo,v 1.6 2002/02/27 21:37:40 martin Exp $
SHA1 (mpg123/mpg123-0.59r.tar.gz) = c32fe242f4506d218bd19a51a4034da9fdc79493
Size (mpg123/mpg123-0.59r.tar.gz) = 159028 bytes
@@ -16,3 +16,5 @@ SHA1 (patch-ai) = 021c5bb2baa56327d486bf134b537ac5c6aa8fba
SHA1 (patch-aj) = 910b2834c34e617c492a3c72e4d2185d3eb53ecc
SHA1 (patch-ak) = b30898cff26859eca0d23ea8cfdd461920b978a8
SHA1 (patch-al) = 88dec640d40e6a3f1828096a4ff7b5a4dbd0a222
+SHA1 (patch-am) = 661c1f95f65145f4e08706eb3f6fe975118a2822
+SHA1 (patch-an) = 08917e1825adcfd870bb2c61ae865339da7c45ef
diff --git a/audio/mpg123/patches/patch-am b/audio/mpg123/patches/patch-am
new file mode 100644
index 00000000000..84c253e7acc
--- /dev/null
+++ b/audio/mpg123/patches/patch-am
@@ -0,0 +1,13 @@
+$NetBSD: patch-am,v 1.1 2002/02/27 21:37:40 martin Exp $
+
+--- getlopt.h.orig Mon Nov 2 23:58:54 1998
++++ getlopt.h Wed Feb 27 22:29:14 2002
+@@ -24,7 +24,7 @@
+ #define GLO_ARG 1
+ #define GLO_CHAR 2
+ #define GLO_NUM 0
+-#define GLO_LONG GLO_NUM
++#define GLO_LONG 4 /* int != long !!! */
+
+ /* flags:
+ * bit 0 = 0 - no argument
diff --git a/audio/mpg123/patches/patch-an b/audio/mpg123/patches/patch-an
new file mode 100644
index 00000000000..510cd68a151
--- /dev/null
+++ b/audio/mpg123/patches/patch-an
@@ -0,0 +1,19 @@
+$NetBSD: patch-an,v 1.1 2002/02/27 21:37:41 martin Exp $
+
+--- getlopt.c.orig Tue Dec 8 10:41:11 1998
++++ getlopt.c Wed Feb 27 22:29:57 2002
+@@ -45,10 +45,12 @@
+
+ if (!(opt->flags & 1)) { /* doesn't take argument */
+ if (opt->var) {
+- if (opt->flags & 2) /* var is *char */
++ if (opt->flags & GLO_CHAR) /* var is *char */
+ *((char *) opt->var) = (char) opt->value;
+- else
++ else if (opt->flags & GLO_LONG) /* var is *long */
+ *((long *) opt->var) = opt->value;
++ else /* var is *int */
++ *((int *) opt->var) = opt->value;
+ }
+ else
+ result = opt->value ? opt->value : opt->sname;