libofa-0.9.3-gcc-4.7.patch 763 B

1234567891011121314151617181920212223
  1. diff -up libofa-0.9.3/examples/uselame.cpp.gcc47 libofa-0.9.3/examples/uselame.cpp
  2. --- libofa-0.9.3/examples/uselame.cpp.gcc47 2012-01-14 09:35:24.343146853 -0600
  3. +++ libofa-0.9.3/examples/uselame.cpp 2012-01-14 09:35:49.956826634 -0600
  4. @@ -12,6 +12,7 @@
  5. #else
  6. #include <sys/wait.h>
  7. #endif
  8. +#include <unistd.h>
  9. AudioData *loadWaveFile(char *file);
  10. diff -up libofa-0.9.3/examples/wavefile.cpp.gcc47 libofa-0.9.3/examples/wavefile.cpp
  11. --- libofa-0.9.3/examples/wavefile.cpp.gcc47 2012-01-14 09:35:24.344146841 -0600
  12. +++ libofa-0.9.3/examples/wavefile.cpp 2012-01-14 16:00:54.414981160 -0600
  13. @@ -11,6 +11,7 @@
  14. #include "io.h"
  15. #endif
  16. #include <fcntl.h>
  17. +#include <unistd.h>
  18. static bool readBytes(int fd, unsigned char *buf, int size) {
  19. int ct = 0;