summaryrefslogtreecommitdiff
path: root/hints/linux.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-16 17:52:29 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-16 17:52:29 +0000
commita48ec845cbd27881b821dcb9bb80e52ba093c5f2 (patch)
tree9db559767d80004cf807399bb10413179b5105fd /hints/linux.sh
parentc04a4dfec532b91f76755cfa4d008128d04c69cb (diff)
downloadperl-a48ec845cbd27881b821dcb9bb80e52ba093c5f2.tar.gz
More paranoid _r protochecking. At least Tru64 and
Linux need additional hinting help to believe that the time_r protos exist; turn on FreeBSD _THREAD_SAFE to see what goes bang. p4raw-id: //depot/perl@15257
Diffstat (limited to 'hints/linux.sh')
-rw-r--r--hints/linux.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 90bcb78c58..e1c2c28baf 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -253,6 +253,14 @@ $define|true|[yY]*)
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,
+ # regardless of the -D_GNU_SOURCE that should turn on everything.
+ d_asctime_r_proto="$define"
+ d_ctime_r_proto="$define"
+ d_gmtime_r_proto="$define"
+ d_localtime_r_proto="$define"
;;
esac
EOCBU