summaryrefslogtreecommitdiff
path: root/extra/libofa/gcc47.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libofa/gcc47.patch')
-rw-r--r--extra/libofa/gcc47.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/extra/libofa/gcc47.patch b/extra/libofa/gcc47.patch
new file mode 100644
index 000000000..eb4b4ca20
--- /dev/null
+++ b/extra/libofa/gcc47.patch
@@ -0,0 +1,22 @@
+diff -ru libofa-0.9.3.orig/examples/uselame.cpp libofa-0.9.3/examples/uselame.cpp
+--- libofa-0.9.3.orig/examples/uselame.cpp 2012-04-18 19:32:44.176037357 +0200
++++ libofa-0.9.3/examples/uselame.cpp 2012-04-18 19:33:03.052805199 +0200
+@@ -12,6 +12,7 @@
+ #else
+ #include <sys/wait.h>
+ #endif
++#include <unistd.h>
+
+ AudioData *loadWaveFile(char *file);
+
+diff -ru libofa-0.9.3.orig/examples/wavefile.cpp libofa-0.9.3/examples/wavefile.cpp
+--- libofa-0.9.3.orig/examples/wavefile.cpp 2012-04-18 19:32:44.176037357 +0200
++++ libofa-0.9.3/examples/wavefile.cpp 2012-04-18 19:37:38.123467239 +0200
+@@ -11,6 +11,7 @@
+ #include "io.h"
+ #endif
+ #include <fcntl.h>
++#include <unistd.h>
+
+ static bool readBytes(int fd, unsigned char *buf, int size) {
+ int ct = 0;