From: Jarkko Hietaniemi Date: Sun, 30 Mar 2003 08:43:53 +0000 (+0000) Subject: In IRIX 5.3 being too POSIXly hides the struct timespec. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=368e8af92165901b8847db2c456b3930fb8e583c;p=p5sagit%2Fp5-mst-13.2.git In IRIX 5.3 being too POSIXly hides the struct timespec. p4raw-id: //depot/perl@19085 --- diff --git a/MANIFEST b/MANIFEST index c96c21c..a225fb1 100644 --- a/MANIFEST +++ b/MANIFEST @@ -722,6 +722,7 @@ ext/Time/HiRes/Changes Time::HiRes extension ext/Time/HiRes/fallback/const-c.inc Time::HiRes extension ext/Time/HiRes/fallback/const-xs.inc Time::HiRes extension ext/Time/HiRes/hints/dynixptx.pl Hint for Time::HiRes for named architecture +ext/Time/HiRes/hints/irix.pl Hint for Time::HiRes for named architecture ext/Time/HiRes/hints/sco.pl Hints for Time::HiRes for named architecture ext/Time/HiRes/HiRes.pm Time::HiRes extension ext/Time/HiRes/HiRes.t Test for Time::HiRes diff --git a/ext/Time/HiRes/hints/irix.pl b/ext/Time/HiRes/hints/irix.pl new file mode 100644 index 0000000..83d98bc --- /dev/null +++ b/ext/Time/HiRes/hints/irix.pl @@ -0,0 +1,6 @@ +use Config; +if ($Config{osvers} == 5) { + $self->{CCFLAGS} = $Config{ccflags}; + $self->{CCFLAGS} =~ s/-ansiposix //; + $self->{CCFLAGS} =~ s/-D_POSIX_SOURCE /-D_POSIX_4SOURCE /; +}