packages/net/linuxptp/patches/001-musl-fix.patch
Stephen Walker e54025a3f4 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>
2016-07-09 15:10:23 -04:00

21 lines
371 B
Diff

--- a/raw.c
+++ b/raw.c
@@ -20,7 +20,6 @@
#include <fcntl.h>
#include <linux/filter.h>
#include <linux/if_ether.h>
-#include <net/ethernet.h>
#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"