aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2014-12-29 13:14:38 -0600
committerElliott Hughes2014-12-29 13:14:38 -0600
commit64d8382394802fc99e248810aedac57057ddd786 (patch)
treedb66c9fb8d448e899c44e8fb65f52c1091c135d0
parenta9c940a69a5ad01a92620594d41e462c5d46186e (diff)
downloadplatform-bionic-64d8382394802fc99e248810aedac57057ddd786.tar.gz
platform-bionic-64d8382394802fc99e248810aedac57057ddd786.tar.xz
platform-bionic-64d8382394802fc99e248810aedac57057ddd786.zip
Ensure <fcntl.h> defines the S_* constants from <sys/stat.h>.
POSIX says "The <fcntl.h> header shall define the symbolic constants for file modes for use as values of mode_t as described in <sys/stat.h>". Needed to build ToT strace. Change-Id: Ia85a51ef6fd86a48084fe48ce24963000a937d37
-rw-r--r--libc/include/fcntl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h
index 10897880..b18ab121 100644
--- a/libc/include/fcntl.h
+++ b/libc/include/fcntl.h
@@ -33,6 +33,7 @@
33#include <sys/types.h> 33#include <sys/types.h>
34#include <linux/fadvise.h> 34#include <linux/fadvise.h>
35#include <linux/fcntl.h> 35#include <linux/fcntl.h>
36#include <linux/stat.h>
36#include <linux/uio.h> 37#include <linux/uio.h>
37#include <unistd.h> /* this is not required, but makes client code much happier */ 38#include <unistd.h> /* this is not required, but makes client code much happier */
38 39