chiark
/
gitweb
/
~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d101ad
)
Silence compiler warnings for ctermid return value
author
Fredrik Fornwall
<fredrik@fornwall.net>
Fri, 29 Apr 2016 00:39:29 +0000
(
02:39
+0200)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Fri, 29 Apr 2016 00:39:29 +0000
(
02:39
+0200)
ndk_patches/stdio.h.patch
patch
|
blob
|
blame
|
history
diff --git
a/ndk_patches/stdio.h.patch
b/ndk_patches/stdio.h.patch
index c64fda15602331ac02862c665403fa1893ee8ea7..325fcf3cd097ac30657c3bd999f2e4c7f53e0c3e 100644
(file)
--- a/
ndk_patches/stdio.h.patch
+++ b/
ndk_patches/stdio.h.patch
@@
-38,7
+38,7
@@
diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/incl
+
+/* Used by perl, fish, and others */
+static char* ctermid(char* s) {
-+ if (s == 0) return "/dev/tty";
++ if (s == 0) return
(char*)
"/dev/tty";
+ strcpy(s, "/dev/tty");
+ return s;
+}