+Tue Aug 9 04:02:28 1994 Mark Eichin (eichin@tess-turbo)
+
+ * configure.in: test for -lsocket, -lnsl, POSIX_SIGNALS
+ * sys_bsd.c: use POSIX_SIGNALS.
+ * commands.c: don't use Berzerkely-style string functions.
+
Sat Aug 6 18:05:42 1994 Mark Eichin (eichin@cygnus.com)
* commands.c: in_systm.h is *not* broken on linux with 4.5 libc.
AC_FUNC_CHECK(setupterm,AC_DEFINE(HAS_SETUPTERM))
AC_HAVE_LIBRARY(-lndbm)
AC_HAVE_LIBRARY(-ldbm)
+AC_FUNC_CHECK(sigprocmask,
+AC_COMPILE_CHECK([sigset_t],
+[#include <signal.h>],
+[sigset_t x],
+AC_DEFINE(POSIX_SIGNALS)))
+AC_HAVE_LIBRARY(socket)
+AC_HAVE_LIBRARY(nsl)
AC_OUTPUT(Makefile,[EXTRA_RULES])
#endif
#ifdef SIGTSTP
(void) signal(SIGTSTP, SIG_DFL);
+#ifdef POSIX_SIGNALS
+ {
+ sigset_t tmask;
+ sigemptyset(&tmask);
+ sigaddtoset(&tmask, SIGTSTP);
+ sigprocmask(SIG_UNBLOCK, &tmask, (sigset_t*)0);
+ }
+#else
(void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1)));
+#endif
#endif /* SIGTSTP */
#ifndef USE_TERMIO
ltc = oltc;