diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-25 00:29:12 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-10-25 00:29:12 +0000 |
commit | 244c80e43ab176ff6b73767e98dfbeae518acb18 (patch) | |
tree | 2eab6e2ca5962a327e19db560d3fe7baa37a5a08 | |
parent | 94e5c060a549fccaab824b60e947aa7c37e19289 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6497 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | gtk/main.c | 6 | ||||
-rw-r--r-- | gtk2/main.c | 6 |
2 files changed, 10 insertions, 2 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 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 |