Added check for <sys/wait.h> #ifdef'ed the SIGSYS block of code, since

some platforms (Linux) don't have SIGSYS. Linux's rationalization is that
SIGSYS is not a POSIX-defined signal.

svn path=/trunk/; revision=743
This commit is contained in:
Gilbert Ramirez 1999-09-30 16:24:07 +00:00
parent 4423330034
commit f93fbc1c89
2 changed files with 22 additions and 2 deletions

View File

@ -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,

21
file.c
View File

@ -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 <gerald@zing.org>
@ -69,6 +69,10 @@
# include <netinet/in.h>
#endif
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#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";