aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/fcntl.h
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-08-29 12:40:53 -0700
committerNick Kralevich <nnk@google.com>2012-08-29 12:47:41 -0700
commit829c089f83ddee37203b52bcb294867a9ae7bdbc (patch)
tree95fb7297694601b1ff65ba0296cfff3a5ee66fd6 /libc/include/fcntl.h
parent069c64cdf2d3da7b7ff6ea5d1041f982fb10ab22 (diff)
downloadandroid_bionic-829c089f83ddee37203b52bcb294867a9ae7bdbc.tar.gz
android_bionic-829c089f83ddee37203b52bcb294867a9ae7bdbc.tar.bz2
android_bionic-829c089f83ddee37203b52bcb294867a9ae7bdbc.zip
disable _FORTIFY_SOURCE under clang
Clang and _FORTIFY_SOURCE are just plain incompatible with each other. First of all, clang doesn't understand the __attribute__((gnu_inline)) header. Second of all, Clang doesn't have support for __builtin_va_arg_pack() and __builtin_va_arg_pack_len() (see http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc) Until we can resolve these issues, don't even try using _FORTIFY_SOURCE under clang. Change-Id: I81c2b8073bb3276fa9a4a6b93c427b641038356a
Diffstat (limited to 'libc/include/fcntl.h')
-rw-r--r--libc/include/fcntl.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h
index 77c92be7c..7ab720542 100644
--- a/libc/include/fcntl.h
+++ b/libc/include/fcntl.h
@@ -51,14 +51,6 @@ extern int creat(const char* path, mode_t mode);
#if defined(__BIONIC_FORTIFY_INLINE)
-# if !defined(__clang__)
-/*
- * Clang doesn't have support for __builtin_va_arg_pack()
- * and __builtin_va_arg_pack_len()
- *
- * http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc
- */
-
extern void __creat_error()
__attribute__((__error__ ("called with O_CREAT, but missing mode")));
extern void __too_many_args_error()
@@ -109,7 +101,6 @@ int openat(int dirfd, const char *pathname, int flags, ...) {
return __openat_real(dirfd, pathname, flags, __builtin_va_arg_pack());
}
-#endif /* !defined(__clang__) */
#endif /* defined(__BIONIC_FORTIFY_INLINE) */
__END_DECLS