diff options
author | Thomas Habets <thomas@habets.pp.se> | 2010-04-02 16:31:04 +0200 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2010-04-02 16:31:04 +0200 |
commit | b04a7cc0b3dea9794a0b151cf5c4be85b4d9b0e7 (patch) | |
tree | df5c19a3f4adb17d21e6c54d361ebbacd6f1ae02 | |
parent | f4f67c07d395b9d15ad8fdd283adacbf37c6a618 (diff) | |
download | arping-b04a7cc0b3dea9794a0b151cf5c4be85b4d9b0e7.tar.gz |
workaround for when there's no CLOCK_MONOTONIC (IRIX)
-rw-r--r-- | src/arping.c | 6 |
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); } |