summaryrefslogtreecommitdiffstats
path: root/ndk/platforms/android-8/include
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2013-10-24 19:39:13 +0200
committerDavid 'Digit' Turner <digit@android.com>2013-10-28 18:46:54 +0100
commit82703204a97988d2b39714c4e0cb879506a3e23f (patch)
tree8d1a2b88ed44187ed4dda6874b2dd0457252b3e0 /ndk/platforms/android-8/include
parent8edf8ef6aadc1a568be40d52c0da659c2b1f5aa8 (diff)
downloadandroid_development-82703204a97988d2b39714c4e0cb879506a3e23f.tar.gz
android_development-82703204a97988d2b39714c4e0cb879506a3e23f.tar.bz2
android_development-82703204a97988d2b39714c4e0cb879506a3e23f.zip
ndk: Add missing declaration for mkdtemp
The mkdtemp() function has always been implemented in the C library (see [1] for proof) but was missing a declaration in <stdlib.h>, until Android 4.0.1 [2] This patch simply adds the missing declaration to former <stdlib.h> versions. This makes it easier to build certain open-source programs for Android, because auto-tools probing typically looks at the symbols in libc.so to define HAVE_MKDTEMP, then the source fails to compile because of the lack of declaration. Note that the mkdtemp is also already listed in platforms/android-*/arch-*/symbols/libc.so.functions.txt, which were generated by parsing actual system libraries, and thus don't need to be updated here. [1] https://android.googlesource.com/platform/bionic/+/android-1.6_r1/libc/stdio/mktemp.c https://android.googlesource.com/platform/bionic/+/android-1.6_r1/libc/Android.mk [2] https://android.googlesource.com/platform/bionic/+/ad1ff2fb268034074488f0b4b30b5311008b8617 Change-Id: I838b54bcb5cbfd2fed24cf7649897889ec7a5559
Diffstat (limited to 'ndk/platforms/android-8/include')
-rw-r--r--ndk/platforms/android-8/include/stdlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ndk/platforms/android-8/include/stdlib.h b/ndk/platforms/android-8/include/stdlib.h
index a34b38128..e89db5666 100644
--- a/ndk/platforms/android-8/include/stdlib.h
+++ b/ndk/platforms/android-8/include/stdlib.h
@@ -57,6 +57,7 @@ extern int setenv(const char *, const char *, int);
extern int unsetenv(const char *);
extern int clearenv(void);
+extern char *mkdtemp(char *);
extern char *mktemp (char *);
extern int mkstemp (char *);