Include <string.h> in <stdio.h> for ctermid()

This commit is contained in:
Fredrik Fornwall 2015-12-24 03:20:05 -05:00
parent 59c1f3a138
commit 9867ff1aca
1 changed files with 16 additions and 7 deletions

View File

@ -1,16 +1,25 @@
diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/stdio.h ./usr/include/stdio.h diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/stdio.h ./usr/include/stdio.h
--- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/stdio.h 2014-10-14 22:53:49.000000000 -0400 --- /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/include/stdio.h 2014-10-14 22:53:49.000000000 -0400
+++ ./usr/include/stdio.h 2014-12-14 15:11:46.007242332 -0500 +++ ./usr/include/stdio.h 2015-12-24 03:07:45.028840214 -0500
@@ -193,7 +193,7 @@ @@ -52,6 +52,8 @@
#include <stdarg.h>
#include <stddef.h>
+#include <string.h> /* For strcpy(3) used by ctermid() */
+
#define __need_NULL
#include <stddef.h>
@@ -193,7 +195,7 @@
/* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */
#if __BSD_VISIBLE || __XPG_VISIBLE #if __BSD_VISIBLE || __XPG_VISIBLE
-#define P_tmpdir "/tmp/" -#define P_tmpdir "/tmp/"
+#define P_tmpdir "@TERMUX_PREFIX@/tmp/" +#define P_tmpdir "/data/data/com.termux/files/usr/tmp/"
#endif #endif
#define L_tmpnam 1024 /* XXX must be == PATH_MAX */ #define L_tmpnam 1024 /* XXX must be == PATH_MAX */
#define TMP_MAX 308915776 #define TMP_MAX 308915776
@@ -371,6 +371,16 @@ @@ -371,6 +373,16 @@
#define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0)
#endif /* __BSD_VISIBLE */ #endif /* __BSD_VISIBLE */