From 159eb5ff116816287ad81e4db0fbf47f4a7b5f33 Mon Sep 17 00:00:00 2001 From: Stephen Walker Date: Sun, 7 May 2017 14:44:14 -0700 Subject: [PATCH] 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 [florian: extract patch from OpenWrt, add commit message] Signed-off-by: Florian Fainelli --- util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util.h b/util.h index e912f19..0c1a357 100644 --- a/util.h +++ b/util.h @@ -20,6 +20,8 @@ #ifndef HAVE_UTIL_H #define HAVE_UTIL_H +#include + #include "ddt.h" #include "ether.h"