From 051c35fca69ef2eacf154e8a123786e42f480cce Mon Sep 17 00:00:00 2001 From: Will Date: Wed, 18 Mar 2015 21:18:33 +0900 Subject: [PATCH] add defines and includes for solaris --- src/config.h | 5 +++++ src/net.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/config.h b/src/config.h index 895c34f6..4f032e7e 100644 --- a/src/config.h +++ b/src/config.h @@ -7,6 +7,11 @@ #define HAVE_EPOLL #elif defined (__sun) #define HAVE_EVPORT +#define _XPG6 +#define __EXTENSIONS__ +#include +#include +#include #endif #endif /* CONFIG_H */ diff --git a/src/net.h b/src/net.h index 590312b2..d8fcf112 100644 --- a/src/net.h +++ b/src/net.h @@ -1,9 +1,9 @@ #ifndef NET_H #define NET_H +#include "config.h" #include #include - #include "wrk.h" typedef enum {