diff options
author | miwi <miwi@FreeBSD.org> | 2013-06-04 16:25:12 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-06-04 16:25:12 +0800 |
commit | 02618729019f6d262a991ad8fff2a048f328faca (patch) | |
tree | c65dd685e405c386e088c18ed859e83413a5696b /audio/xcd/files | |
parent | f4ca8374934a5e284226938e01ad6198f6fc68e0 (diff) | |
download | freebsd-ports-gnome-02618729019f6d262a991ad8fff2a048f328faca.tar.gz freebsd-ports-gnome-02618729019f6d262a991ad8fff2a048f328faca.tar.zst freebsd-ports-gnome-02618729019f6d262a991ad8fff2a048f328faca.zip |
- Fix build with clang
PR: 179214
Submitted by: Ports Fury
Diffstat (limited to 'audio/xcd/files')
-rw-r--r-- | audio/xcd/files/patch-aa | 11 | ||||
-rw-r--r-- | audio/xcd/files/patch-ab | 11 | ||||
-rw-r--r-- | audio/xcd/files/patch-cdplayer.cc | 20 |
3 files changed, 20 insertions, 22 deletions
diff --git a/audio/xcd/files/patch-aa b/audio/xcd/files/patch-aa index d7649f5ebf5a..e69de29bb2d1 100644 --- a/audio/xcd/files/patch-aa +++ b/audio/xcd/files/patch-aa @@ -1,11 +0,0 @@ ---- cdplayer.cc.orig Sat Nov 27 16:20:49 1999 -+++ cdplayer.cc Sat Nov 27 16:24:02 1999 -@@ -29,7 +29,7 @@ - public: - button (char *s) {state=0; strcpy (name, s);} - ~button () {} -- set (int i) { -+ void set (int i) { - if (state != i) { - state = i; - if (state == 0) diff --git a/audio/xcd/files/patch-ab b/audio/xcd/files/patch-ab index 58cf0557cc50..e69de29bb2d1 100644 --- a/audio/xcd/files/patch-ab +++ b/audio/xcd/files/patch-ab @@ -1,11 +0,0 @@ ---- Makefile.orig Mon Oct 26 16:14:26 1998 -+++ Makefile Sun Sep 8 13:14:02 2002 -@@ -8,7 +8,7 @@ - < xcd.in > $@ - chmod ugo+x xcd - cdplayer: cdplayer.cc -- $(CC) $(CFLAGS) -o $@ cdplayer.cc -lm -+ $(CXX) $(CXXFLAGS) -o $@ cdplayer.cc -lm - - install: xcd cdplayer - mkdir -p $(BINDIR) diff --git a/audio/xcd/files/patch-cdplayer.cc b/audio/xcd/files/patch-cdplayer.cc new file mode 100644 index 000000000000..ec0923112126 --- /dev/null +++ b/audio/xcd/files/patch-cdplayer.cc @@ -0,0 +1,20 @@ +--- cdplayer.cc.orig Sat Nov 27 16:20:49 1999 ++++ cdplayer.cc Sat Nov 27 16:24:02 1999 +@@ -29,7 +29,7 @@ + public: + button (char *s) {state=0; strcpy (name, s);} + ~button () {} +- set (int i) { ++ void set (int i) { + if (state != i) { + state = i; + if (state == 0) +@@ -90,7 +90,7 @@ + #define S(t) toc_buffer[t].addr.msf.second + #define F(t) toc_buffer[t].addr.msf.frame + +-main (int argc, char **argv) ++int main (int argc, char **argv) + { + char dev[20], line[50]; + int i; |