diff options
Diffstat (limited to 'media-sound/combine_wave/files')
-rw-r--r-- | media-sound/combine_wave/files/combine_wave-0.3.1-makefile.patch | 22 | ||||
-rw-r--r-- | media-sound/combine_wave/files/combine_wave-0.3.1-missing-includes.patch | 14 |
2 files changed, 36 insertions, 0 deletions
diff --git a/media-sound/combine_wave/files/combine_wave-0.3.1-makefile.patch b/media-sound/combine_wave/files/combine_wave-0.3.1-makefile.patch new file mode 100644 index 000000000000..591d56ad1867 --- /dev/null +++ b/media-sound/combine_wave/files/combine_wave-0.3.1-makefile.patch @@ -0,0 +1,22 @@ +--- a/Makefile ++++ b/Makefile +@@ -3,16 +3,13 @@ + #CC = /usr/local/bin/g++ + #CC = /usr/bin/g++ + +-CFLAGS = -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +- +-.c.o: +- gcc $(CFLAGS) -c $< ++CFLAGS += -Wall ++CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 + + OBJECT =\ + combine_wave.o + +-a.out : $(OBJECT) +- gcc -o combine_wave $(OBJECT) ++all: combine_wave + + # DEPENDENCIES + combine_wave.o : combine_wave.c combine_wave.h wave_header.h diff --git a/media-sound/combine_wave/files/combine_wave-0.3.1-missing-includes.patch b/media-sound/combine_wave/files/combine_wave-0.3.1-missing-includes.patch new file mode 100644 index 000000000000..3d6a3c938ba1 --- /dev/null +++ b/media-sound/combine_wave/files/combine_wave-0.3.1-missing-includes.patch @@ -0,0 +1,14 @@ +--- a/combine_wave.h ++++ b/combine_wave.h +@@ -12,9 +12,10 @@ + #include <float.h> + #include <math.h> + #include <linux/soundcard.h> +-#include <sys/poll.h> ++#include <poll.h> + #include "stdint.h" + #include <sys/ioctl.h> ++#include <sys/select.h> + #include <string.h> + + |