summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2010-04-02 16:31:04 +0200
committerThomas Habets <thomas@habets.pp.se>2010-04-02 16:31:04 +0200
commitb04a7cc0b3dea9794a0b151cf5c4be85b4d9b0e7 (patch)
treedf5c19a3f4adb17d21e6c54d361ebbacd6f1ae02
parentf4f67c07d395b9d15ad8fdd283adacbf37c6a618 (diff)
downloadarping-b04a7cc0b3dea9794a0b151cf5c4be85b4d9b0e7.tar.gz
workaround for when there's no CLOCK_MONOTONIC (IRIX)
-rw-r--r--src/arping.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arping.c b/src/arping.c
index d537c60..411bcf3 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -97,6 +97,10 @@
#define WIN32 0
#endif
+#ifndef CLOCK_MONOTONIC
+#define CLOCK_MONOTONIC CLOCK_REALTIME
+#endif
+
/**
* OS-specific interface finding using routing table. See findif_*.c
*/
@@ -892,7 +896,7 @@ ping_recv_unix(pcap_t *pcap, uint32_t packetwait, pcap_handler func)
/* weird is normal on bsd :) */
if (verbose > 3) {
fprintf(stderr,
- "arping: poll says ok, "
+ "arping: poll says ok, but "
"pcap_dispatch=%d!\n",
ret);
}