diff options
author | Thomas Habets <thomas@habets.pp.se> | 2010-04-01 18:37:13 +0200 |
---|---|---|
committer | Thomas Habets <thomas@habets.pp.se> | 2010-04-01 18:37:13 +0200 |
commit | d4810ddc781235a51d2ef08315d69bca236ef1cf (patch) | |
tree | 4aeb5724155cc757d9404a8ebb7bdf312b00cf1f | |
parent | 4fb5c0871177ba0baf5f4e06b95f8caa721fa2d2 (diff) | |
download | arping-d4810ddc781235a51d2ef08315d69bca236ef1cf.tar.gz |
include inttypes if it exists. Fixes compile on IRIX.
-rw-r--r-- | src/arping.c | 4 | ||||
-rw-r--r-- | src/arping.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/arping.c b/src/arping.c index 07d4d3e..2fff271 100644 --- a/src/arping.c +++ b/src/arping.c @@ -47,6 +47,10 @@ #include <stdint.h> #endif +#if HAVE_INTTYPES_H +#include <inttypes.h> +#endif + #if HAVE_SYS_TIME_H #include <sys/time.h> #endif diff --git a/src/arping.h b/src/arping.h index feb86f6..05c5ff4 100644 --- a/src/arping.h +++ b/src/arping.h @@ -4,6 +4,10 @@ #include <stdint.h> #endif +#if HAVE_INTTYPES_H +#include <inttypes.h> +#endif + extern uint32_t srcip,dstip; void do_libnet_init(const char *ifname); const char *arping_lookupdev_default(const char *ifname, |