radare2: fix path to file '/etc/magic'
[termux-packages] / ndk-patches / string.h.patch
1 See https://github.com/android-ndk/ndk/issues/440
2
3 diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/string.h ./usr/include/string.h
4 --- /home/fornwall/lib/android-ndk/sysroot/usr/include/string.h 2017-06-20 17:41:56.000000000 +0200
5 +++ ./usr/include/string.h 2017-06-30 22:15:01.161342640 +0200
6 @@ -74,12 +74,12 @@
7 #endif /* __ANDROID_API__ >= 18 */
8
9 #if defined(__USE_GNU)
10 +#if __ANDROID_API__ >= 24
11 #if defined(__cplusplus)
12 extern "C++" char* strchrnul(char* _Nonnull, int) __RENAME(strchrnul) __attribute_pure__;
13 extern "C++" const char* strchrnul(const char* _Nonnull, int) __RENAME(strchrnul) __attribute_pure__;
14 #else
15
16 -#if __ANDROID_API__ >= 24
17 char* strchrnul(const char* _Nonnull, int) __attribute_pure__ __INTRODUCED_IN(24);
18 #endif /* __ANDROID_API__ >= 24 */
19
20 @@ -169,6 +169,7 @@
21 #endif
22
23 #if defined(__USE_GNU) && !defined(basename)
24 +#if __ANDROID_API__ >= 23
25 /*
26 * glibc has a basename in <string.h> that's different to the POSIX one in <libgen.h>.
27 * It doesn't modify its argument, and in C++ it's const-correct.
28 @@ -178,7 +179,6 @@
29 extern "C++" const char* basename(const char* _Nonnull) __RENAME(__gnu_basename);
30 #else
31
32 -#if __ANDROID_API__ >= 23
33 char* basename(const char* _Nonnull) __RENAME(__gnu_basename) __INTRODUCED_IN(23);
34 #endif /* __ANDROID_API__ >= 23 */
35