]> Savannah Git Hosting - gnulib.git/commitdiff
sigsegv: Port to Solaris 11
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 29 May 2021 17:14:01 +0000 (10:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 29 May 2021 17:15:05 +0000 (10:15 -0700)
Problem reported by Kiyoshi KANAZAWA in:
https://lists.gnu.org/r/bug-m4/2021-05/msg00020.html
* lib/stackvma.c (_FILE_OFFSET_BITS): #undef on Solaris and Android.

ChangeLog
lib/stackvma.c

index 43056adcb6a0347956e7d240a63dc923fa188ec1..2f145fc02f8271137c830e02439e0724b6f7db17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-05-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       sigsegv: Port to Solaris 11
+       Problem reported by Kiyoshi KANAZAWA in:
+       https://lists.gnu.org/r/bug-m4/2021-05/msg00020.html
+       * lib/stackvma.c (_FILE_OFFSET_BITS): #undef on Solaris and Android.
+
 2021-05-24  Bruno Haible  <bruno@clisp.org>
 
        c-stack: Document another restriction.
index faa99238e34c7968a3687f49421a5797777d4046..ba3c7d305bb78c02bc1afac4272d1305f7010d96 100644 (file)
 
 #include <config.h>
 
+/* On Solaris in 32-bit mode, when gnulib module 'largefile' is in use,
+   prevent a compilation error
+     "Cannot use procfs in the large file compilation environment"
+   On Android, when targeting Android 4.4 or older with a GCC toolchain,
+   prevent a compilation error
+     "error: call to 'mmap' declared with attribute error: mmap is not
+      available with _FILE_OFFSET_BITS=64 when using GCC until android-21.
+      Either raise your minSdkVersion, disable _FILE_OFFSET_BITS=64, or
+      switch to Clang."
+   The files that we access in this compilation unit are less than 2 GB
+   large.  */
+#if defined __sun || defined __ANDROID__
+# undef _FILE_OFFSET_BITS
+#endif
+
 /* Specification.  */
 #include "stackvma.h"