aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ntp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-10-25 20:48:48 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-10-25 20:48:48 +0000
commit5eae78a8cb35e7b435d6335b06bac6b184020e24 (patch)
tree11cc0194688843e312130851e2f042f59c394b28 /packet-ntp.c
parent349912eb567fdac0e959136fd51c3fe01f695e34 (diff)
Include "snprintf", if necessary, to get "snprintf()" declared.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@926 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ntp.c')
-rw-r--r--packet-ntp.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/packet-ntp.c b/packet-ntp.c
index 69747caf68..c3a813fc46 100644
--- a/packet-ntp.c
+++ b/packet-ntp.c
@@ -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>
@@ -43,6 +43,16 @@
#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"