Skip to content

Commit 28128e1

Browse files
committed
Build fix for Linux overlay with 03242016 compiler.
With the 03242016 development drop, building the Dispatch overlay on Linux fails because mode_t and off_t are not defined. This is a minimal fix to include the needed header files and get the build working again.
1 parent 054d938 commit 28128e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dispatch/dispatch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
#include <stdarg.h>
3333
#include <unistd.h>
3434
#include <fcntl.h>
35+
#ifndef __APPLE__
36+
#include <stdio.h>
37+
#include <sys/types.h>
38+
#endif
3539

3640
#ifndef __OSX_AVAILABLE_STARTING
3741
#define __OSX_AVAILABLE_STARTING(x, y)

0 commit comments

Comments
 (0)