aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2015-10-29 10:29:55 -0700
committerManuel Klimek <klimek@google.com>2015-10-29 10:29:55 -0700
commit8254ee748c227f5921d28dd5fece73b20fde50f7 (patch)
tree8bd471ead515872c40be8d603cf7c9dabd8c4e16
parent8205f0d10ebb5ddf8c43e8cede4a86f7744a0504 (diff)
downloadglibc-8254ee748c227f5921d28dd5fece73b20fde50f7.zip
glibc-8254ee748c227f5921d28dd5fece73b20fde50f7.tar.gz
glibc-8254ee748c227f5921d28dd5fece73b20fde50f7.tar.bz2
Allow suppressing the definition of __USE_FILE_OFFSET64 by defining SUPPRESS_USE_FILE_OFFSET64 in the CROSSTOOL.
-rw-r--r--include/features.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/features.h b/include/features.h
index b68915a..0748c81 100644
--- a/include/features.h
+++ b/include/features.h
@@ -360,7 +360,9 @@
# define __USE_LARGEFILE64 1
#endif
-#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
+/* Google local: Add a way to disable the auto-64-bit-offset option for functions like
+ fgetpos, which can cause mismatched signatures in C++ modules. */
+#if !(defined SUPPRESS_USE_FILE_OFFSET64) && defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64
# define __USE_FILE_OFFSET64 1
#endif