]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ts_format only uses ndo if HAVE_PCAP_SET_TSTAMP_PRECISION is defined.
authorGuy Harris <[email protected]>
Sun, 19 Oct 2014 05:41:55 +0000 (22:41 -0700)
committerGuy Harris <[email protected]>
Sun, 19 Oct 2014 05:41:55 +0000 (22:41 -0700)
util.c

diff --git a/util.c b/util.c
index 5731ca7b376a95751d9e9448d65092429eef14d7..3836151c206b62490f86f60f7cfeeb492a7c759c 100644 (file)
--- a/util.c
+++ b/util.c
@@ -135,7 +135,11 @@ fn_printzp(netdissect_options *ndo,
  * Format the timestamp
  */
 static char *
-ts_format(netdissect_options *ndo, int sec, int usec)
+ts_format(netdissect_options *ndo
+#ifndef HAVE_PCAP_SET_TSTAMP_PRECISION
+_U_
+#endif
+, int sec, int usec)
 {
        static char buf[sizeof("00:00:00.000000000")];
        const char *format;