comparison auto/os/conf @ 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 489839d07b38
children 639e48c382a6
comparison
equal deleted inserted replaced
6155:193bbc006d5e 6156:a88e309f839b
58 CORE_INCS="$UNIX_INCS" 58 CORE_INCS="$UNIX_INCS"
59 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS" 59 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
60 CORE_SRCS="$UNIX_SRCS" 60 CORE_SRCS="$UNIX_SRCS"
61 ;; 61 ;;
62 62
63 GNU:*)
64 # GNU Hurd
65 have=NGX_GNU_HURD . auto/have_headers
66 CORE_INCS="$UNIX_INCS"
67 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
68 CORE_SRCS="$UNIX_SRCS"
69 CC_AUX_FLAGS="$CC_AUX_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
70 ;;
71
63 *) 72 *)
64 CORE_INCS="$UNIX_INCS" 73 CORE_INCS="$UNIX_INCS"
65 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS" 74 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
66 CORE_SRCS="$UNIX_SRCS" 75 CORE_SRCS="$UNIX_SRCS"
67 ;; 76 ;;