emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r117243: Port part of the AIX fix to Solaris.


From: Paul Eggert
Subject: [Emacs-diffs] emacs-24 r117243: Port part of the AIX fix to Solaris.
Date: Sat, 14 Jun 2014 20:24:13 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117243
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/17598
committer: Paul Eggert <address@hidden>
branch nick: emacs-24
timestamp: Sat 2014-06-14 13:24:08 -0700
message:
  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'.
modified:
  ChangeLog                      changelog-20091113204419-o5vbwnq5f7feedwu-1538
  configure.ac                   
configure.in-20091113204419-o5vbwnq5f7feedwu-783
=== modified file 'ChangeLog'
--- a/ChangeLog 2014-06-11 20:03:46 +0000
+++ b/ChangeLog 2014-06-14 20:24:08 +0000
@@ -1,3 +1,11 @@
+2014-06-14  Paul Eggert  <address@hidden>
+
+       Port part of the AIX fix to Solaris (Bug#17598).
+       * configure.ac (_REENTRANT): Define on Solaris if HAVE_PTHREAD.
+       This ports part of the recent AIX fixes 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'.
+
 2014-06-11  Paul Eggert  <address@hidden>
 
        Backport fcntl.h AIX fix from the trunk (Bug#17598).

=== modified file 'configure.ac'
--- a/configure.ac      2014-06-07 06:10:39 +0000
+++ b/configure.ac      2014-06-14 20:24:08 +0000
@@ -2079,10 +2079,14 @@
   # Some systems optimize for single-threaded programs by default, and
   # need special flags to disable these optimizations. For example, the
   # definition of 'errno' in <errno.h>.
-  if test "$opsys" = aix4-2; then
-    AC_DEFINE([_THREAD_SAFE], [1],
-      [Define to 1 if your system requires this in multithreaded code.])
-  fi
+  case $opsys in
+    sol*)
+      AC_DEFINE([_REENTRANT], 1,
+       [Define to 1 if your system requires this in multithreaded code.]);;
+    aix4-2)
+      AC_DEFINE([_THREAD_SAFE], 1,
+       [Define to 1 if your system requires this in multithreaded code.]);;
+  esac
 fi
 AC_SUBST([LIB_PTHREAD])
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]