diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-25 00:29:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-25 00:29:12 +0000 |
commit | f54f6a1a0a8358c09f184e8521262baba50636f7 (patch) | |
tree | 2eab6e2ca5962a327e19db560d3fe7baa37a5a08 /gtk2 | |
parent | 6f0b42deffbd4ba1a376ad534783014e2075f542 (diff) | |
download | wireshark-f54f6a1a0a8358c09f184e8521262baba50636f7.tar.gz wireshark-f54f6a1a0a8358c09f184e8521262baba50636f7.tar.bz2 wireshark-f54f6a1a0a8358c09f184e8521262baba50636f7.zip |
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 'gtk2')
-rw-r--r-- | gtk2/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2/main.c b/gtk2/main.c index 5ba3feabc4..484e9b6bef 100644 --- a/gtk2/main.c +++ b/gtk2/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.16 2002/10/24 07:08:26 guy Exp $ + * $Id: main.c,v 1.17 2002/10/25 00:29:12 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 |