ndk_patches: Include correct fcntl.h in stdio.h
authorFredrik Fornwall <fredrik@fornwall.net>
Wed, 18 May 2016 04:43:18 +0000 (00:43 -0400)
committerFredrik 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

index d8f6626..8dfed60 100644 (file)
@@ -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