From ef14f00f6457898bf16a04e6ea8f74a7fdeee853 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 2 Nov 2019 20:25:54 +0000 Subject: [PATCH] osx: needs sys/dirent.h --- lib/misc/diskcache.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/misc/diskcache.c b/lib/misc/diskcache.c index a55463c10..d2d364204 100644 --- a/lib/misc/diskcache.c +++ b/lib/misc/diskcache.c @@ -40,6 +40,14 @@ #include #include +#if defined(__APPLE__) +#include +/* Travis OSX does not have DT_REG... */ +#if !defined(DT_REG) +#define DT_REG 8 +#endif +#endif + struct file_entry { lws_list_ptr sorted; lws_list_ptr prev;