Include "snprintf", if necessary, to get "snprintf()" declared.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Oct 1999 20:48:48 +0000 (20:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Oct 1999 20:48:48 +0000 (20:48 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@926 f5534014-38df-0310-8fa8-9805f1628bb7

packet-ntp.c

index 69747caf68e63a4f8dcca5d90244310d66226a3b..c3a813fc46f7206451bdd677d05bbe813cb8676e 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for NTP packet dissection
  * Copyright 1999, Nathan Neulinger <nneul@umr.edu>
  *
- * $Id: packet-ntp.c,v 1.3 1999/10/25 01:55:45 guy Exp $
+ * $Id: packet-ntp.c,v 1.4 1999/10/25 20:48:48 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@unicom.net>
 #include <time.h>
 #include <math.h>
 #include <glib.h>
+
+#ifdef NEED_SNPRINTF_H
+# ifdef HAVE_STDARG_H
+#  include <stdarg.h>
+# else
+#  include <varargs.h>
+# endif
+# include "snprintf.h"
+#endif
+
 #include "packet.h"
 #include "resolv.h"
 #include "packet-ntp.h"