summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Walker2017-05-07 16:44:14 -0500
committerRichard Cochran2017-05-15 16:05:57 -0500
commit159eb5ff116816287ad81e4db0fbf47f4a7b5f33 (patch)
treef491c74e2ac3e39b24d1885c2481db90a91af6ee
parent43b2f5d1207a010f1df67e101b129b09502371e2 (diff)
downloadlinuxptp-159eb5ff116816287ad81e4db0fbf47f4a7b5f33.tar.gz
linuxptp-159eb5ff116816287ad81e4db0fbf47f4a7b5f33.tar.xz
linuxptp-159eb5ff116816287ad81e4db0fbf47f4a7b5f33.zip
util: Fix unknown time_t types with musl-libc builds
Fixes the following build errors seen with musl-libc: 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> [florian: extract patch from OpenWrt, add commit message] Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index e912f19..0c1a357 100644
--- a/util.h
+++ b/util.h
@@ -20,6 +20,8 @@
20#ifndef HAVE_UTIL_H 20#ifndef HAVE_UTIL_H
21#define HAVE_UTIL_H 21#define HAVE_UTIL_H
22 22
23#include <time.h>
24
23#include "ddt.h" 25#include "ddt.h"
24#include "ether.h" 26#include "ether.h"
25 27