In IRIX 5.3 being too POSIXly hides the struct timespec.
Jarkko Hietaniemi [Sun, 30 Mar 2003 08:43:53 +0000 (08:43 +0000)]
p4raw-id: //depot/perl@19085

MANIFEST
ext/Time/HiRes/hints/irix.pl [new file with mode: 0644]

index c96c21c..a225fb1 100644 (file)
--- 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 (file)
index 0000000..83d98bc
--- /dev/null
@@ -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 /;
+}