Browse Source

ndk_patches: Include correct fcntl.h in stdio.h

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.
android-5
Fredrik Fornwall 9 years ago
parent
commit
0475ed5665
  1. 2
      ndk_patches/stdio.h.patch

2
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

Loading…
Cancel
Save