134
edits
(→Fix headers: Add log.h header fix) |
|||
Line 60: | Line 60: | ||
Certain header files in the NDK do not compile as C++. Paste this command in your terminal while in the NDK directory to patch them. | Certain header files in the NDK do not compile as C++. Paste this command in your terminal while in the NDK directory to patch them. | ||
patch - | patch -Np1 << "EOF" | ||
--- | --- android-ndk-1.6_r1-orig/build/platforms/android-4/arch-arm/usr/include/android/log.h 2009-07-28 17:26:01.000000000 -0700 | ||
+++ android-ndk-1.6_r1/build/platforms/android-4/arch-arm/usr/include/asm-generic/siginfo.h | +++ android-ndk-1.6_r1/build/platforms/android-4/arch-arm/usr/include/android/log.h 2010-01-15 17:37:23.000000000 -0800 | ||
@@ -85,7 +85,7 @@ | |||
ANDROID_LOG_WARN, | |||
ANDROID_LOG_ERROR, | |||
ANDROID_LOG_FATAL, | |||
- ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */ | |||
+ ANDROID_LOG_SILENT /* only for SetMinPriority(); must be last */ | |||
} android_LogPriority; | |||
/* | |||
--- android-ndk-1.6_r1-orig/build/platforms/android-4/arch-arm/usr/include/asm-generic/siginfo.h 2009-07-28 17:26:01.000000000 -0700 | |||
+++ android-ndk-1.6_r1/build/platforms/android-4/arch-arm/usr/include/asm-generic/siginfo.h 2010-01-15 17:37:10.000000000 -0800 | |||
@@ -55,7 +55,7 @@ | @@ -55,7 +55,7 @@ | ||
struct { | struct { | ||
Line 72: | Line 83: | ||
int _sys_private; | int _sys_private; | ||
} _timer; | } _timer; | ||
--- | --- android-ndk-1.6_r1-orig/build/platforms/android-4/arch-arm/usr/include/dlfcn.h 2009-07-28 17:26:01.000000000 -0700 | ||
+++ android-ndk-1.6_r1/build/platforms/android-4/arch-arm/usr/include/dlfcn.h | +++ android-ndk-1.6_r1/build/platforms/android-4/arch-arm/usr/include/dlfcn.h 2010-01-15 17:37:10.000000000 -0800 | ||
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
RTLD_LAZY = 1, | RTLD_LAZY = 1, | ||
RTLD_LOCAL = 0, | RTLD_LOCAL = 0, | ||
- RTLD_GLOBAL = 2, | - RTLD_GLOBAL = 2, | ||
+ RTLD_GLOBAL = 2 | + RTLD_GLOBAL = 2 | ||
}; | }; | ||
#define RTLD_DEFAULT ((void*) 0xffffffff) | #define RTLD_DEFAULT ((void*) 0xffffffff) | ||
EOF | EOF |
edits