Klaus Demo nginx / 226647e
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. Maxim Dounin 7 years ago
2 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5959 CORE_SRCS="$UNIX_SRCS"
6060 ;;
6161
62 GNU:*)
63 # GNU Hurd
64 have=NGX_GNU_HURD . auto/have_headers
65 CORE_INCS="$UNIX_INCS"
66 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
67 CORE_SRCS="$UNIX_SRCS"
68 CC_AUX_FLAGS="$CC_AUX_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
69 ;;
70
6271 *)
6372 CORE_INCS="$UNIX_INCS"
6473 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
1717
1818 #if (NGX_TRU64)
1919 #define _REENTRANT
20 #endif
21
22
23 #if (NGX_GNU_HURD)
24 #ifndef _GNU_SOURCE
25 #define _GNU_SOURCE /* accept4() */
26 #endif
27 #define _FILE_OFFSET_BITS 64
2028 #endif
2129
2230