aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/main.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-25 00:29:12 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-25 00:29:12 +0000
commitf54f6a1a0a8358c09f184e8521262baba50636f7 (patch)
tree2eab6e2ca5962a327e19db560d3fe7baa37a5a08 /gtk/main.c
parent6f0b42deffbd4ba1a376ad534783014e2075f542 (diff)
At least according to the UNIX 98 spec, you need to include <unistd.h>
to declare "getopt()" and the variables it uses; tethereal.c already includes it, but gtk/main.c and gtk2/main.c, which also use "getopt()", don't - make them do so. svn path=/trunk/; revision=6497
Diffstat (limited to 'gtk/main.c')
-rw-r--r--gtk/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/main.c b/gtk/main.c
index c4f059bc92..395db6b340 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.268 2002/10/24 07:08:24 guy Exp $
+ * $Id: main.c,v 1.269 2002/10/25 00:29:10 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -44,6 +44,10 @@
#include <string.h>
#include <ctype.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifdef HAVE_IO_H
#include <io.h> /* open/close on win32 */
#endif