diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-20 14:21:33 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-20 14:21:33 +0000 |
commit | c95a44803d41d61c12c72f454dc8b4be35f0073a (patch) | |
tree | 2a09a2c2764a01df477976942569988a9eeef4ee | |
parent | 33b8afdf5cd7f66238db46e095c6effe7bebe9ee (diff) | |
download | perl-c95a44803d41d61c12c72f454dc8b4be35f0073a.tar.gz |
Sigh. The _GNU_SOURCE is needed for the struct crypt_data
in Mandrake 8.2. Now we need to figure out a way not to
unbreak Apache.
p4raw-id: //depot/perl@15357
-rw-r--r-- | hints/linux.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index d09f076e2b..4c40980cb5 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -249,23 +249,21 @@ 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 <features.h> and <time.h> 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" ;; esac |