commit | 82703204a97988d2b39714c4e0cb879506a3e23f | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@android.com> | Thu Oct 24 19:39:13 2013 +0200 |
committer | David 'Digit' Turner <digit@android.com> | Mon Oct 28 18:46:54 2013 +0100 |
tree | 8d1a2b88ed44187ed4dda6874b2dd0457252b3e0 | |
parent | 8edf8ef6aadc1a568be40d52c0da659c2b1f5aa8 [diff] |
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