aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/fcntl.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-22 10:58:55 -0700
committerElliott Hughes <enh@google.com>2013-03-22 10:58:55 -0700
commit890c8ed6ef773160cd6840a92e0d469fe530871f (patch)
tree6689569955f500ea13697ea928386dd9c64d1af3 /libc/include/fcntl.h
parent34895c1bdfa5df48ee9a7b4368b6def403f24cf1 (diff)
downloadandroid_bionic-890c8ed6ef773160cd6840a92e0d469fe530871f.tar.gz
android_bionic-890c8ed6ef773160cd6840a92e0d469fe530871f.tar.bz2
android_bionic-890c8ed6ef773160cd6840a92e0d469fe530871f.zip
Fix builds where _FORTIFY_SOURCE is off.
Also add a more intention-revealing guard so we don't have loads of places checking whether our inlining macro is defined. Change-Id: I168860cedcfc798b07a5145bc48a125700265e47
Diffstat (limited to 'libc/include/fcntl.h')
-rw-r--r--libc/include/fcntl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h
index 7ab720542..de2e3e354 100644
--- a/libc/include/fcntl.h
+++ b/libc/include/fcntl.h
@@ -49,7 +49,7 @@ extern int unlinkat(int dirfd, const char *pathname, int flags);
extern int fcntl(int fd, int command, ...);
extern int creat(const char* path, mode_t mode);
-#if defined(__BIONIC_FORTIFY_INLINE)
+#if defined(__BIONIC_FORTIFY)
extern void __creat_error()
__attribute__((__error__ ("called with O_CREAT, but missing mode")));
@@ -101,7 +101,7 @@ int openat(int dirfd, const char *pathname, int flags, ...) {
return __openat_real(dirfd, pathname, flags, __builtin_va_arg_pack());
}
-#endif /* defined(__BIONIC_FORTIFY_INLINE) */
+#endif /* defined(__BIONIC_FORTIFY) */
__END_DECLS