diff --git a/configure.in b/configure.in index e0bf27a90f..b6f295b9e1 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.46 1999/09/24 14:59:32 gram Exp $ +# $Id: configure.in,v 1.47 1999/09/30 16:24:07 gram Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(etypes.h) @@ -104,6 +104,7 @@ dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h stdarg.h netdb.h) AC_CHECK_HEADERS(sys/stat.h sys/sockio.h sys/types.h netinet/in.h sys/socket.h net/if.h) +AC_CHECK_HEADERS(sys/wait.h) dnl SNMP Check AC_ARG_ENABLE(snmp, diff --git a/file.c b/file.c index d64e7ac84b..113682437c 100644 --- a/file.c +++ b/file.c @@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.101 1999/09/30 07:15:19 guy Exp $ + * $Id: file.c,v 1.102 1999/09/30 16:24:07 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -69,6 +69,10 @@ # include #endif +#ifdef HAVE_SYS_WAIT_H +# include +#endif + #include "gtk/main.h" #include "column.h" #include "gtk/menu.h" @@ -373,9 +377,24 @@ cap_file_input_cb (gpointer data, gint source, GdkInputCondition condition) { sigmsg = "Segmentation violation"; break; + /* http://metalab.unc.edu/pub/Linux/docs/HOWTO/GCC-HOWTO + Linux is POSIX compliant. These are not POSIX-defined signals --- + ISO/IEC 9945-1:1990 (IEEE Std 1003.1-1990), paragraph B.3.3.1.1 sez: + + ``The signals SIGBUS, SIGEMT, SIGIOT, SIGTRAP, and SIGSYS + were omitted from POSIX.1 because their behavior is + implementation dependent and could not be adequately catego- + rized. Conforming implementations may deliver these sig- + nals, but must document the circumstances under which they + are delivered and note any restrictions concerning their + delivery.'' + */ + + #ifdef SIGSYS case SIGSYS: sigmsg = "Bad system call"; break; + #endif case SIGPIPE: sigmsg = "Broken pipe";