X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Flinux.sh;h=e152a6a3ce04b088fea91453bc6af4a60630494c;hb=f5e3445d922108beb0eda8afa05a86411da18e40;hp=bd713b8eb4ad889f0e8b878071bea49056e895d2;hpb=5631657506cad9ec2bb834419e12de99314c37d5;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/linux.sh b/hints/linux.sh index bd713b8..e152a6a 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -249,23 +249,22 @@ esac cat > UU/usethreads.cbu <<'EOCBU' case "$usethreads" in $define|true|[yY]*) - ccflags="-D_REENTRANT -D_POSIX_C_SOURCE=199506L -D_SVID_SOURCE $ccflags" + ccflags="-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS $ccflags" set `echo X "$libswanted "| sed -e 's/ c / pthread c /'` shift libswanted="$*" # Somehow at least in Debian 2.2 these manage to escape # the #define forest of and so that - # the hasproto macro of Configure doesn't see these protos. - # -D_GNU_SOURCE has been suggested but it breaks other software - # (like Apache). + # the hasproto macro of Configure doesn't see these protos, + # even with the -D_GNU_SOURCE. d_asctime_r_proto="$define" d_crypt_r_proto="$define" d_ctime_r_proto="$define" d_gmtime_r_proto="$define" d_localtime_r_proto="$define" - d_readdir64_r_proto="$define" + d_random_r_proto="$define" ;; esac