diff options
author | Stephen Walker <stephendwalker+github@gmail.com> | 2016-07-09 15:10:23 -0400 |
---|---|---|
committer | Stephen Walker <stephendwalker+github@gmail.com> | 2016-07-09 15:10:23 -0400 |
commit | e54025a3f40e8abdb9c723da596e70d883d1326f (patch) | |
tree | 1558cfdfc727f79510428fe692abe80f3cd8128b | |
parent | 6d7aa666e5d3a3693ae5079f17656e0496bf9f89 (diff) |
linuxptp: include time.h to fix unknown type name 'time_t' error with musl, refresh patches
In file included from print.h:25:0,
from linreg.c:24:
util.h:364:32: error: unknown type name 'time_t'
int rate_limited(int interval, time_t *last);
^
Signed-off-by: Stephen Walker <stephendwalker+github@gmail.com>
-rw-r--r-- | net/linuxptp/patches/001-musl-fix.patch | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/net/linuxptp/patches/001-musl-fix.patch b/net/linuxptp/patches/001-musl-fix.patch index 41302c7b3..b79a84bad 100644 --- a/net/linuxptp/patches/001-musl-fix.patch +++ b/net/linuxptp/patches/001-musl-fix.patch @@ -1,7 +1,5 @@ -Index: linuxptp-20151118/raw.c -=================================================================== ---- linuxptp-20151118.orig/raw.c 2016-01-08 13:39:56.000000000 +0100 -+++ linuxptp-20151118/raw.c 2016-01-13 09:16:51.951784148 +0100 +--- a/raw.c ++++ b/raw.c @@ -20,7 +20,6 @@ #include <fcntl.h> #include <linux/filter.h> @@ -10,3 +8,14 @@ Index: linuxptp-20151118/raw.c #include <net/if.h> #include <netinet/in.h> #include <netpacket/packet.h> +--- a/util.h ++++ b/util.h +@@ -20,6 +20,8 @@ + #ifndef HAVE_UTIL_H + #define HAVE_UTIL_H + ++#include <time.h> ++ + #include "ddt.h" + #include "ether.h" + |