diff -Naurp amd-gpu-bin-mx51-09.12.00-orig/usr/include/EGL/eglext.h amd-gpu-bin-mx51-09.12.00/usr/include/EGL/eglext.h
--- amd-gpu-bin-mx51-09.12.00-orig/usr/include/EGL/eglext.h	2009-12-21 18:05:00.000000000 -0500
+++ amd-gpu-bin-mx51-09.12.00/usr/include/EGL/eglext.h	2010-05-27 10:51:05.041579573 -0400
@@ -172,11 +172,11 @@ typedef void* EGLSyncKHR;
  * nanoseconds (unadjusted standard time).  Here, it is defined as
  * appropriate for an ISO C compiler.
  */
-#ifndef _LINUX
+#ifndef __linux__
 typedef uint64_t EGLTimeKHR;
-#else   // _LINUX
+#else   // __linux__
 typedef unsigned long long EGLTimeKHR;
-#endif  // _LINUX
+#endif  // __linux__
 
 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR            0xFFF8
 #define EGL_SYNC_STATUS_KHR                             0xFFF7                                  
diff -Naurp amd-gpu-bin-mx51-09.12.00-orig/usr/include/VG/ext.h amd-gpu-bin-mx51-09.12.00/usr/include/VG/ext.h
--- amd-gpu-bin-mx51-09.12.00-orig/usr/include/VG/ext.h	2009-12-21 18:05:00.000000000 -0500
+++ amd-gpu-bin-mx51-09.12.00/usr/include/VG/ext.h	2010-05-27 10:51:53.313281354 -0400
@@ -15,7 +15,7 @@
 extern "C" {
 #endif
 
-#ifndef _LINUX
+#ifndef __linux__
 #include <VG/openvg.h>
 #else
 #include "openvg.h"
diff -Naurp amd-gpu-bin-mx51-09.12.00-orig/usr/include/VG/openvg.h amd-gpu-bin-mx51-09.12.00/usr/include/VG/openvg.h
--- amd-gpu-bin-mx51-09.12.00-orig/usr/include/VG/openvg.h	2010-05-27 10:52:50.682548311 -0400
+++ amd-gpu-bin-mx51-09.12.00/usr/include/VG/openvg.h	2010-05-27 10:51:24.331580216 -0400
@@ -445,7 +445,7 @@ typedef enum {
 #       endif
 #   elif defined(__APPLE__)
 #       define VG_API_CALL extern
-#   elif defined(_LINUX)
+#   elif defined(__linux__)
 #       if defined (OPENVG_DLL_EXPORTS)
 #           define VG_API_CALL extern
 #       else
