]> git.eshelyaron.com Git - emacs.git/commitdiff
Move _longjmp, _setjmp from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Mon, 30 Jul 2012 14:30:20 +0000 (07:30 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 30 Jul 2012 14:30:20 +0000 (07:30 -0700)
* configure.ac (_longjmp, _setjmp): Move here from src/s.

* src/s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them.
* src/s/irix6-5.h (_longjmp, _setjmp): No more need to undefine.

ChangeLog
configure.ac
src/ChangeLog
src/s/irix6-5.h
src/s/usg5-4-common.h

index ee3ae610a35c04021478a2a8da8a78c20b0c0f17..5c1f2c6a1b657ca8cd42d1033d38f0165769c792 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-30  Glenn Morris  <rgm@gnu.org>
+
+       * configure.ac (_longjmp, _setjmp): Move here from src/s.
+
 2012-07-30  Jan Djärv  <jan.h.d@swipnet.se>
 
        * Makefile.in (install-arch-indep): Remove sh -x.
index 9b8cabf8e4a30c53408522b4cc1ce8d112b8adf7..9ca02cce7cc76923165dc42a7e4e1d5703a8776f 100644 (file)
@@ -3631,6 +3631,15 @@ else
   esac
 fi                              dnl GCC?
 
+case $opsys in
+  sol2* | unixware )
+    dnl setjmp and longjmp can safely replace _setjmp and _longjmp,
+    dnl but they will run more slowly.
+    AC_DEFINE(_setjmp, setjmp, [Some platforms redefine this.])
+    AC_DEFINE(_longjmp, longjmp, [Some platforms redefine this.])
+    ;;
+esac
+
 
 dnl Used in xfaces.c.
 case $opsys in
index e8aff22c2cb3322c4232752082c0d0f60762c322..37d660da78595b9dc532d1889bb519e7d0bb1d81 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-30  Glenn Morris  <rgm@gnu.org>
+
+       * s/usg5-4-common.h (_longjmp, _setjmp): Let configure set them.
+       * s/irix6-5.h (_longjmp, _setjmp): No more need to undefine.
+
 2012-07-30  Andreas Schwab  <schwab@linux-m68k.org>
 
        * keymap.c (Fkey_description): Don't remove 0x80 bit from
index 9b21584546129f8ee91c2d4c3dde66a28d13a900..1750183189d73ddd6abea2143ee2a5e59386b5c7 100644 (file)
@@ -19,9 +19,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "usg5-4-common.h"
 
-#undef _longjmp /* use system versions, not conservative aliases */
-#undef _setjmp
-
 #ifdef emacs
 char *_getpty();
 #endif
index 6ead01d3712a6d01146eea03cd553e51c481cac4..12506bd8d08869c8f24aa4b8b246fb820213415d 100644 (file)
@@ -20,11 +20,6 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
-/* setjmp and longjmp can safely replace _setjmp and _longjmp,
-   but they will run slower.  */
-#define _setjmp setjmp
-#define _longjmp longjmp
-
 /* Get FIONREAD from <sys/filio.h>.  Get <sys/ttold.h> to get struct tchars.
    But get <termio.h> first to make sure ttold.h doesn't interfere.  */
 #include <sys/wait.h>