1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

osx: needs sys/dirent.h

This commit is contained in:
Andy Green 2019-11-02 20:25:54 +00:00
parent ce55c5dfe4
commit ef14f00f64

View file

@ -40,6 +40,14 @@
#include <sys/time.h>
#include <sys/types.h>
#if defined(__APPLE__)
#include <sys/dirent.h>
/* 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;