aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_config.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-06-04 17:28:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-06-04 17:28:33 +0000
commit9cf783074fd7793ebb6859e7f62b054d79074efe (patch)
treeb5bd9726d10952b0fab24754e2af210a9b644682 /src/os/unix/ngx_linux_config.h
parent1c10462e88491d52a23e22fbc3ca0012591df095 (diff)
downloadnginx-9cf783074fd7793ebb6859e7f62b054d79074efe.tar.gz
nginx-9cf783074fd7793ebb6859e7f62b054d79074efe.zip
nginx-0.0.1-2003-06-04-21:28:33 import
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r--src/os/unix/ngx_linux_config.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
index cfd941342..b90792c96 100644
--- a/src/os/unix/ngx_linux_config.h
+++ b/src/os/unix/ngx_linux_config.h
@@ -2,10 +2,14 @@
#define _NGX_LINUX_CONFIG_H_INCLUDED_
-#define _XOPEN_SOURCE 500
+#define _FILE_OFFSET_BITS 64
+#define _LARGEFILE_SOURCE
+#define _XOPEN_SOURCE 500 /* pread, pwrite */
#include <unistd.h>
+#undef _XOPEN_SOURCE 500
+
#include <stddef.h> /* offsetof */
#include <stdlib.h>
#include <stdio.h>
@@ -13,7 +17,7 @@
#include <signal.h>
#include <time.h>
-#define __USE_BSD
+#define __USE_BSD /* bzero */
#include <string.h>
#undef __USE_BSD
@@ -23,14 +27,16 @@
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <sys/resource.h>
+#include <sys/sysctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
-typedef unsigned int u_int;
-typedef unsigned char u_char;
+typedef unsigned int u_int;
+typedef unsigned short u_short;
+typedef unsigned char u_char;
#ifndef HAVE_SELECT
@@ -56,4 +62,9 @@ typedef unsigned char u_char;
#endif
+#ifndef HAVE_FIONBIO
+#define HAVE_FIONBIO 1
+#endif
+
+
#endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */