diff options
| author | Paul Eggert | 2014-06-14 13:24:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-06-14 13:24:08 -0700 |
| commit | 50bee071548758300c40d0c5f8871ec9f3075289 (patch) | |
| tree | 6ca49c1cff3717aa27ef2d135f88ab55396755bd | |
| parent | 859488bf227da300a4d1f90a51222b163165dfae (diff) | |
| download | emacs-50bee071548758300c40d0c5f8871ec9f3075289.tar.gz emacs-50bee071548758300c40d0c5f8871ec9f3075289.zip | |
Port part of the AIX fix to Solaris.
* configure.ac (_REENTRANT): Define on Solaris if HAVE_PTHREAD.
This ports part of the recent AIX fix to Solaris. It is needed
for the same reason that _THREAD_SAFE is needed on AIX, e.g., to
make sure that each thread has its own 'errno'.
Fixes: debbugs:17598
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | configure.ac | 12 |
2 files changed, 16 insertions, 4 deletions
| @@ -1,3 +1,11 @@ | |||
| 1 | 2014-06-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Port part of the AIX fix to Solaris (Bug#17598). | ||
| 4 | * configure.ac (_REENTRANT): Define on Solaris if HAVE_PTHREAD. | ||
| 5 | This ports part of the recent AIX fixes to Solaris. It is needed | ||
| 6 | for the same reason that _THREAD_SAFE is needed on AIX, e.g., to | ||
| 7 | make sure that each thread has its own 'errno'. | ||
| 8 | |||
| 1 | 2014-06-11 Paul Eggert <eggert@cs.ucla.edu> | 9 | 2014-06-11 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 10 | ||
| 3 | Backport fcntl.h AIX fix from the trunk (Bug#17598). | 11 | Backport fcntl.h AIX fix from the trunk (Bug#17598). |
diff --git a/configure.ac b/configure.ac index 600271d1119..702b8570577 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -2079,10 +2079,14 @@ if test "$HAVE_PTHREAD" = yes; then | |||
| 2079 | # Some systems optimize for single-threaded programs by default, and | 2079 | # Some systems optimize for single-threaded programs by default, and |
| 2080 | # need special flags to disable these optimizations. For example, the | 2080 | # need special flags to disable these optimizations. For example, the |
| 2081 | # definition of 'errno' in <errno.h>. | 2081 | # definition of 'errno' in <errno.h>. |
| 2082 | if test "$opsys" = aix4-2; then | 2082 | case $opsys in |
| 2083 | AC_DEFINE([_THREAD_SAFE], [1], | 2083 | sol*) |
| 2084 | [Define to 1 if your system requires this in multithreaded code.]) | 2084 | AC_DEFINE([_REENTRANT], 1, |
| 2085 | fi | 2085 | [Define to 1 if your system requires this in multithreaded code.]);; |
| 2086 | aix4-2) | ||
| 2087 | AC_DEFINE([_THREAD_SAFE], 1, | ||
| 2088 | [Define to 1 if your system requires this in multithreaded code.]);; | ||
| 2089 | esac | ||
| 2086 | fi | 2090 | fi |
| 2087 | AC_SUBST([LIB_PTHREAD]) | 2091 | AC_SUBST([LIB_PTHREAD]) |
| 2088 | 2092 | ||