Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

lib32-libofa GCC-4.7 compatibility patch

By: a guest on Apr 16th, 2012  |  syntax: None  |  size: 0.54 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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;