diff options
author | Maciej Żenczykowski <maze@google.com> | 2019-10-16 22:32:33 -0700 |
---|---|---|
committer | Maciej Żenczykowski <maze@google.com> | 2019-10-16 22:34:40 -0700 |
commit | a809e5d982646ffafccb75183688d3c87cc5d4eb (patch) | |
tree | 29fec37ad800473a8ba70513915c60cdd8f23c26 /iputils_common.h | |
parent | 30b0fa41c77de0d05a699adc3f6e385a2235da2b (diff) | |
download | iputils-a809e5d982646ffafccb75183688d3c87cc5d4eb.tar.gz |
iputils_common.h: fix missing #include <sys/time.h>
This fixes:
In file included from ping/ping6_common.c:61:
iputils_common.h:63:32: error: declaration of 'struct timespec' will not be visible outside of this function [-Werror,-Wvisibility]
extern void timespecsub(struct timespec *a, struct timespec *b,
^
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Icc30a25c30fc606f46def07704cdc6997018d58f
Diffstat (limited to 'iputils_common.h')
-rw-r--r-- | iputils_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iputils_common.h b/iputils_common.h index b28f461..82a77f0 100644 --- a/iputils_common.h +++ b/iputils_common.h @@ -2,6 +2,7 @@ #define IPUTILS_COMMON_H #include <stdio.h> +#include <sys/time.h> #define ARRAY_SIZE(arr) \ (sizeof(arr) / sizeof((arr)[0]) + \ |