aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_config.h')
-rw-r--r--src/core/ngx_config.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h
index 2582ddae3..66199deee 100644
--- a/src/core/ngx_config.h
+++ b/src/core/ngx_config.h
@@ -52,6 +52,23 @@
#else /* POSIX */
+
+
+/* Solaris */
+#if defined(sun) && (defined(__svr4__) || defined(__SVR4))
+
+#define SOLARIS 1
+
+#define _FILE_OFFSET_BITS 64 /* should be before sys/types.h */
+
+#ifndef HAVE_INHERITED_NONBLOCK
+#define HAVE_INHERITED_NONBLOCK 1
+#endif
+
+#endif /* Solaris */
+
+
+
#include <unistd.h>
#include <stddef.h> /* offsetof */
#include <stdlib.h>