diff options
author | Elliott Hughes <enh@google.com> | 2013-03-22 10:58:55 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-03-22 10:58:55 -0700 |
commit | 890c8ed6ef773160cd6840a92e0d469fe530871f (patch) | |
tree | 6689569955f500ea13697ea928386dd9c64d1af3 /libc/include/fcntl.h | |
parent | 34895c1bdfa5df48ee9a7b4368b6def403f24cf1 (diff) | |
download | android_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.h | 4 |
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 |