Include "snprintf.h", as we use "snprintf()", so that we don't get
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 4 Jan 1999 07:39:14 +0000 (07:39 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 4 Jan 1999 07:39:14 +0000 (07:39 +0000)
warnings from "gcc -Wall".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@151 f5534014-38df-0310-8fa8-9805f1628bb7

ethereal.c

index 89f5ae059c36d1914d421cd53c2169ff7e6d647a..7ac74c9ed7fd0dd9717a6228ff5f1e22e2bd19c6 100644 (file)
@@ -1,6 +1,6 @@
 /* ethereal.c
  *
- * $Id: ethereal.c,v 1.19 1998/12/29 04:05:34 gerald Exp $
+ * $Id: ethereal.c,v 1.20 1999/01/04 07:39:14 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
 #include <fcntl.h>
 #include <netinet/in.h>
 
+#ifdef NEED_SNPRINTF_H
+# ifdef HAVE_STDARG_H
+#  include <stdarg.h>
+# else
+#  include <varargs.h>
+# endif
+# include "snprintf.h"
+#endif
+
 #include "ethereal.h"
 #include "capture.h"
 #include "packet.h"