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:
parent
ce55c5dfe4
commit
ef14f00f64
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue