aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/fcntl.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-29 11:14:38 -0800
committerElliott Hughes <enh@google.com>2014-12-29 11:14:38 -0800
commit64d8382394802fc99e248810aedac57057ddd786 (patch)
treedb66c9fb8d448e899c44e8fb65f52c1091c135d0 /libc/include/fcntl.h
parenta9c940a69a5ad01a92620594d41e462c5d46186e (diff)
downloadandroid_bionic-64d8382394802fc99e248810aedac57057ddd786.tar.gz
android_bionic-64d8382394802fc99e248810aedac57057ddd786.tar.bz2
android_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
Diffstat (limited to 'libc/include/fcntl.h')
-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 108978807..b18ab1216 100644
--- a/libc/include/fcntl.h
+++ b/libc/include/fcntl.h
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include <linux/fadvise.h>
#include <linux/fcntl.h>
+#include <linux/stat.h>
#include <linux/uio.h>
#include <unistd.h> /* this is not required, but makes client code much happier */