aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_config.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-06-06 14:59:20 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-06-06 14:59:20 +0000
commite4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8 (patch)
treebfa99dbe2be9b41364c325bf1d990958c93247f8 /src/os/unix/ngx_linux_config.h
parent9cf783074fd7793ebb6859e7f62b054d79074efe (diff)
downloadnginx-e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8.tar.gz
nginx-e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8.zip
nginx-0.0.1-2003-06-06-18:59:20 import
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r--src/os/unix/ngx_linux_config.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
index b90792c96..96e1d8856 100644
--- a/src/os/unix/ngx_linux_config.h
+++ b/src/os/unix/ngx_linux_config.h
@@ -2,25 +2,20 @@
#define _NGX_LINUX_CONFIG_H_INCLUDED_
+#define _GNU_SOURCE /* pread, pwrite, gethostname, bzero */
+
#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>
#include <fcntl.h>
#include <signal.h>
#include <time.h>
-
-#define __USE_BSD /* bzero */
#include <string.h>
-#undef __USE_BSD
-
#include <sys/types.h>
#include <sys/time.h>
#include <sys/select.h>
@@ -39,6 +34,11 @@ typedef unsigned short u_short;
typedef unsigned char u_char;
+#define QD_FMT "%qd"
+#define QX_FMT "%qx"
+#define OFF_FMT "%qd"
+
+
#ifndef HAVE_SELECT
#define HAVE_SELECT 1
#endif