# HG changeset patch # User John W. Eaton # Date 1289440914 18000 # Node ID 88e4ea8b2c19bc8956fe530c404b076fadd070e1 # Parent 2f29b765c0ef7dfb7c3e0d8d9a1a7c142cb79928 eliminate special cases for NeXT systems diff -r 2f29b765c0ef -r 88e4ea8b2c19 ChangeLog --- a/ChangeLog Wed Nov 10 20:55:32 2010 -0500 +++ b/ChangeLog Wed Nov 10 21:01:54 2010 -0500 @@ -1,3 +1,7 @@ +2010-11-10 John W. Eaton + + * configure.ac: Eliminate special cases for nextstep. + 2010-11-10 John W. Eaton * configure.ac: Eliminate special checks for SCO systems. diff -r 2f29b765c0ef -r 88e4ea8b2c19 configure.ac --- a/configure.ac Wed Nov 10 20:55:32 2010 -0500 +++ b/configure.ac Wed Nov 10 21:01:54 2010 -0500 @@ -511,8 +511,6 @@ ### Look for math library. If found, this will add -lm to LIBS. case "$canonical_host_type" in - *-*-nextstep*) - ;; *-*-linux*) AC_CHECK_LIB(m, sin, , , -lc) ;; @@ -1547,17 +1545,6 @@ AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) -### I'm told that termios.h is broken on NeXT systems. - -case "$canonical_host_type" in - *-*-nextstep*) - if test "$have_termios_h" = yes; then - AC_MSG_WARN([Ignoring termios.h on NeXT systems.]) - have_termios_h=no - fi - ;; -esac - if test "$have_termios_h" = yes \ || test "$have_termio_h" = yes \ || test "$have_sgtty_h" = yes; then diff -r 2f29b765c0ef -r 88e4ea8b2c19 liboctave/ChangeLog --- a/liboctave/ChangeLog Wed Nov 10 20:55:32 2010 -0500 +++ b/liboctave/ChangeLog Wed Nov 10 21:01:54 2010 -0500 @@ -1,3 +1,7 @@ +2010-11-10 John W. Eaton + + * syswait.h: Delete special cases for NeXT systems. + 2010-11-10 John W. Eaton * lo-sysdep.cc (octave_chdir): Delete special case for __EMX__. diff -r 2f29b765c0ef -r 88e4ea8b2c19 liboctave/syswait.h --- a/liboctave/syswait.h Wed Nov 10 20:55:32 2010 -0500 +++ b/liboctave/syswait.h Wed Nov 10 21:01:54 2010 -0500 @@ -31,34 +31,10 @@ #include -#if defined (NeXT) && ! defined (_POSIX_SOURCE) -#define HAVE_SYS_WAIT_H -#endif - #if defined HAVE_SYS_WAIT_H #include #endif -#if defined (NeXT) -#define HAVE_WAITPID 1 -#define WAITPID(a, b, c) \ - wait4 ((a) == -1 ? 0 : (a), (union wait *)(b), c, 0) - -/* Use the defaults below. */ -#undef WIFEXITED -#undef WEXITSTATUS -#undef WIFSIGNALLED -#endif - -/* NeXT has sys/wait.h, but it is not compatible with POSIX.1, so we - try to define waitpid in terms of wait4. */ - -#if defined (NeXT) -#include -#define waitpid(a, b, c) \ - wait4 ((a) == -1 ? 0 : (a), (union wait *)(b), c, 0) -#endif - #ifndef WIFEXITED #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif diff -r 2f29b765c0ef -r 88e4ea8b2c19 src/ChangeLog --- a/src/ChangeLog Wed Nov 10 20:55:32 2010 -0500 +++ b/src/ChangeLog Wed Nov 10 21:01:54 2010 -0500 @@ -1,3 +1,8 @@ +2010-11-10 John W. Eaton + + * sysdep.cc (sysdep_init): Eliminate special case for NeXT systems. + (malloc_handler, NeXT_init): Delete. + 2010-11-10 John W. Eaton * sighandlers.cc (MAYBE_ACK_SIGNAL): Delete macro and all uses. diff -r 2f29b765c0ef -r 88e4ea8b2c19 src/sysdep.cc --- a/src/sysdep.cc Wed Nov 10 20:55:32 2010 -0500 +++ b/src/sysdep.cc Wed Nov 10 21:01:54 2010 -0500 @@ -247,29 +247,6 @@ #endif -#if defined (NeXT) -extern "C" -{ - typedef void (*_cplus_fcn_int) (int); - extern void (*malloc_error (_cplus_fcn_int)) (int); -} - -static void -malloc_handler (int code) -{ - if (code == 5) - warning ("hopefully recoverable malloc error: freeing wild pointer"); - else - panic ("probably irrecoverable malloc error: code %d", code); -} - -static void -NeXT_init (void) -{ - malloc_error (malloc_handler); -} -#endif - void sysdep_init (void) { @@ -279,8 +256,6 @@ MINGW_init (); #elif defined (_MSC_VER) MSVC_init (); -#elif defined (NeXT) - NeXT_init (); #endif octave_ieee_init ();