Mercurial > hg > nginx
comparison src/os/unix/ngx_posix_config.h @ 6156:a88e309f839b
Configure: GNU Hurd properly recognized.
With this change it's no longer needed to pass -D_GNU_SOURCE manually,
and -D_FILE_OFFSET_BITS=64 is set to use 64-bit off_t.
Note that nginx currently fails to work properly with master process
enabled on GNU Hurd, as fcntl(F_SETOWN) returns EOPNOTSUPP for sockets
as of GNU Hurd 0.6. Additionally, our strerror() preloading doesn't
work well with GNU Hurd, as it uses large numbers for most errors.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 May 2015 17:58:13 +0300 |
parents | 72e31d88defa |
children | 7142b04337d6 |
comparison
equal
deleted
inserted
replaced
6155:193bbc006d5e | 6156:a88e309f839b |
---|---|
16 #endif | 16 #endif |
17 | 17 |
18 | 18 |
19 #if (NGX_TRU64) | 19 #if (NGX_TRU64) |
20 #define _REENTRANT | 20 #define _REENTRANT |
21 #endif | |
22 | |
23 | |
24 #if (NGX_GNU_HURD) | |
25 #ifndef _GNU_SOURCE | |
26 #define _GNU_SOURCE /* accept4() */ | |
27 #endif | |
28 #define _FILE_OFFSET_BITS 64 | |
21 #endif | 29 #endif |
22 | 30 |
23 | 31 |
24 #ifdef __CYGWIN__ | 32 #ifdef __CYGWIN__ |
25 #define timezonevar /* timezone is variable */ | 33 #define timezonevar /* timezone is variable */ |