~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48e3319
)
ndk_patches: Include correct fcntl.h in stdio.h
author
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 18 May 2016 04:43:18 +0000
(
00:43
-0400)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 18 May 2016 04:43:18 +0000
(
00:43
-0400)
Include <asm/fcntl.h> and not <asm-generic/fcntl.h>. The first one
has arch-specific values before including the second one, which
checks with #ifdef before defining generic values.
ndk_patches/stdio.h.patch
patch
|
blob
|
blame
|
history
diff --git
a/ndk_patches/stdio.h.patch
b/ndk_patches/stdio.h.patch
index
d8f6626
..
8dfed60
100644
(file)
--- a/
ndk_patches/stdio.h.patch
+++ b/
ndk_patches/stdio.h.patch
@@
-6,7
+6,7
@@
diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/incl
#include <stddef.h>
+#include <string.h> /* For strcpy(3) used by ctermid() */
-+#include <asm
-generic/fcntl.h>
/* For O_RDWR and other O_* constants */
++#include <asm
/fcntl.h>
/* For O_RDWR and other O_* constants */
+#include <stdlib.h> /* For arc4random() */
+
#define __need_NULL