summaryrefslogtreecommitdiff
path: root/audio/wmmp3/patches
diff options
context:
space:
mode:
authordholland <dholland>2011-09-04 21:38:03 +0000
committerdholland <dholland>2011-09-04 21:38:03 +0000
commit8e89ba30f39415812f5333009d334440636ff060 (patch)
tree266a549663d47e481df5d80a647f709b194c1ecf /audio/wmmp3/patches
parenta28f139e0dc1b2c01c0a2a349561fb054b536cc2 (diff)
downloadpkgsrc-8e89ba30f39415812f5333009d334440636ff060.tar.gz
Fix void main, caught by clang.
While here, fix other problems caught by gcc: - casting malloc instead of including <stdlib.h> - casting strdup instead of including <string.h> - failing to include <time.h> with bad consequences for -current. PKGREVISION -> 3.
Diffstat (limited to 'audio/wmmp3/patches')
-rw-r--r--audio/wmmp3/patches/patch-main_c15
-rw-r--r--audio/wmmp3/patches/patch-mpg123ctl_c12
-rw-r--r--audio/wmmp3/patches/patch-song__hash_c12
3 files changed, 39 insertions, 0 deletions
diff --git a/audio/wmmp3/patches/patch-main_c b/audio/wmmp3/patches/patch-main_c
new file mode 100644
index 00000000000..30ddcb92b96
--- /dev/null
+++ b/audio/wmmp3/patches/patch-main_c
@@ -0,0 +1,15 @@
+$NetBSD: patch-main_c,v 1.1 2011/09/04 21:38:03 dholland Exp $
+
+- fix void main
+
+--- main.c~ 2000-04-03 00:11:46.000000000 +0000
++++ main.c
+@@ -230,7 +230,7 @@ int check_options(int argc, char *argv[]
+ return option_entered;
+ }
+
+-void main(int argc, char *argv[])
++int main(int argc, char *argv[])
+ {
+ struct coord pos[] = {
+ {35, 34, 12, 11}, /* stop */
diff --git a/audio/wmmp3/patches/patch-mpg123ctl_c b/audio/wmmp3/patches/patch-mpg123ctl_c
new file mode 100644
index 00000000000..b86bc881b77
--- /dev/null
+++ b/audio/wmmp3/patches/patch-mpg123ctl_c
@@ -0,0 +1,12 @@
+$NetBSD: patch-mpg123ctl_c,v 1.1 2011/09/04 21:38:03 dholland Exp $
+
+- add needed standard headers
+
+--- mpg123ctl.c~ 2000-04-03 00:18:43.000000000 +0000
++++ mpg123ctl.c
+@@ -15,4 +15,5 @@
+ */
+
++#include <time.h>
+ #include "mpg123ctl.h"
+
diff --git a/audio/wmmp3/patches/patch-song__hash_c b/audio/wmmp3/patches/patch-song__hash_c
new file mode 100644
index 00000000000..a36fcca732e
--- /dev/null
+++ b/audio/wmmp3/patches/patch-song__hash_c
@@ -0,0 +1,12 @@
+$NetBSD: patch-song__hash_c,v 1.1 2011/09/04 21:38:03 dholland Exp $
+
+- add needed standard headers
+
+--- song_hash.c~ 2000-04-03 00:17:22.000000000 +0000
++++ song_hash.c
+@@ -1,3 +1,5 @@
++#include <stdlib.h>
++#include <string.h>
+ #include "song_hash.h"
+
+ #define HASH_TABLE_SIZE 11