From 0475ed56650063f22c1b2cbad1d50c138d7ca1c6 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 18 May 2016 00:43:18 -0400 Subject: [PATCH] ndk_patches: Include correct fcntl.h in stdio.h Include and not . 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk_patches/stdio.h.patch b/ndk_patches/stdio.h.patch index d8f66267..8dfed604 100644 --- 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 +#include /* For strcpy(3) used by ctermid() */ -+#include /* For O_RDWR and other O_* constants */ ++#include /* For O_RDWR and other O_* constants */ +#include /* For arc4random() */ + #define __need_NULL -- 2.11.0