X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/a1b245c64ec4c4b287db2fadf7d97c80820ff264..5c36f4e054559b6577504a4a6690123bd77e7496:/ndk_patches/stdio.h.patch diff --git a/ndk_patches/stdio.h.patch b/ndk_patches/stdio.h.patch index 8dfed604..f3d871ed 100644 --- a/ndk_patches/stdio.h.patch +++ b/ndk_patches/stdio.h.patch @@ -37,7 +37,7 @@ diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/incl +#define __sferror(p) (((p)->_flags & __SERR) != 0) + +/* Used by perl, fish, and others */ -+static char* ctermid(char* s) { ++static __inline__ char* ctermid(char* s) { + if (s == 0) return (char*) "/dev/tty"; + strcpy(s, "/dev/tty"); + return s; @@ -55,7 +55,7 @@ diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/incl +extern int open(const char*, int, ...); +extern pid_t getpid(); +extern int unlink(const char*); -+static FILE* tmpfile() { ++static __inline__ FILE* tmpfile() { + int p = getpid(); + char* path; + int i;