X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Flinux.sh;h=7dccc1cc0730ab0aea504ac38cc4b14c2860600b;hb=e934609f7db1163b003ba7314f8d52ebfc1e2f12;hp=971e491536bbd81a73650a5171de623e4cf60e88;hpb=c3404dc3f8286932553dac5e8ad89c4ca6825680;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/linux.sh b/hints/linux.sh index 971e491..7dccc1c 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -249,10 +249,23 @@ esac cat > UU/usethreads.cbu <<'EOCBU' case "$usethreads" in $define|true|[yY]*) - ccflags="-D_REENTRANT $ccflags" + ccflags="-D_REENTRANT -D_GNU_SOURCE $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, + # 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_random_r_proto="$define" + ;; esac EOCBU