diff options
-rw-r--r-- | capture.c | 8 | ||||
-rw-r--r-- | configure.in | 5 |
2 files changed, 9 insertions, 4 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.37 1999/07/28 20:17:14 deniel Exp $ + * $Id: capture.c,v 1.38 1999/07/31 23:06:13 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -34,6 +34,10 @@ # include <sys/types.h> #endif +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif + #include <gtk/gtk.h> #include <stdlib.h> #include <stdio.h> @@ -435,7 +439,7 @@ capture(void) { pcap_close(pch); return; } - + chmod(cf.save_file, 0600); ld.linktype = pcap_datalink(pch); if (cf.cfilter) { diff --git a/configure.in b/configure.in index c7730f1f6f..833791a5f7 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.32 1999/07/20 08:02:15 guy Exp $ +# $Id: configure.in,v 1.33 1999/07/31 23:06:13 gram Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(etypes.h) @@ -12,6 +12,7 @@ AC_PROG_CC AC_PROG_CPP AC_PROG_RANLIB AC_PROG_YACC +AM_PROG_LEX # If we're running gcc, add '-Wall' to CFLAGS. AC_MSG_CHECKING(to see if we can add '-Wall' to CFLAGS) @@ -80,7 +81,7 @@ fi 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/sockio.h sys/types.h netinet/in.h sys/socket.h net/if.h) +AC_CHECK_HEADERS(sys/stat.h sys/sockio.h sys/types.h netinet/in.h sys/socket.h net/if.h) dnl SNMP Check AC_ARG_ENABLE(snmp, |