From e4a2526e5ccd4f3f5f160656c1a7b6f865ac44c8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 6 Jun 2003 14:59:20 +0000 Subject: nginx-0.0.1-2003-06-06-18:59:20 import --- src/os/unix/ngx_linux_config.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/os/unix/ngx_linux_config.h') 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 -#undef _XOPEN_SOURCE 500 - #include /* offsetof */ #include #include #include #include #include - -#define __USE_BSD /* bzero */ #include -#undef __USE_BSD - #include #include #include @@ -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 -- cgit v1.2.3