]> git.cworth.org Git - apitrace/commitdiff
Include unistd.h for symlink.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 3 Dec 2011 11:00:32 +0000 (11:00 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 3 Dec 2011 11:00:32 +0000 (11:00 +0000)
Fixes build on Mac OS X 10.6.

cgltrace.py
glproc_gl.cpp

index 1b314197618766771e6e29ffce047a836fd56d77..21007237d9e8e725152550e5ffd4a9d8da99c7b7 100644 (file)
@@ -44,7 +44,6 @@ if __name__ == '__main__':
     print
     print '#include <stdlib.h>'
     print '#include <string.h>'
-    print '#include <unistd.h>'
     print
     print '#include "trace_writer.hpp"'
     print
index d9fb469e3533867efaee1b2ab2acd109462c2a79..d032e8b7a866be14d780d705be2ba60f24e97771 100644 (file)
@@ -28,9 +28,7 @@
 
 
 #if !defined(_WIN32)
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE // for dladdr
-#endif
+#include <unistd.h> // for symlink
 #include <dlfcn.h>
 #endif