Guest User

lib32-libofa GCC-4.7 compatibility patch

a guest
Apr 16th, 2012
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/examples/uselame.cpp 2006-05-10 19:05:51.000000000 +0100
  2. +++ b/examples/uselame.cpp 2012-04-16 12:57:51.035989196 +0100
  3. @@ -12,6 +12,7 @@
  4. #else
  5. #include <sys/wait.h>
  6. #endif
  7. +#include <unistd.h>
  8.  
  9. AudioData *loadWaveFile(char *file);
  10.  
  11. --- a/examples/wavefile.cpp 2006-05-10 19:05:56.000000000 +0100
  12. +++ b/examples/wavefile.cpp 2012-04-16 12:57:37.439463775 +0100
  13. @@ -11,6 +11,7 @@
  14. #include "io.h"
  15. #endif
  16. #include <fcntl.h>
  17. +#include <unistd.h>
  18.  
  19. static bool readBytes(int fd, unsigned char *buf, int size) {
  20. int ct = 0;
RAW Paste Data