summaryrefslogtreecommitdiff
path: root/ext/Time
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-30 08:43:53 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-30 08:43:53 +0000
commit368e8af92165901b8847db2c456b3930fb8e583c (patch)
tree19b623d8e36ce8fcd19ab725b739f3eb33e9bfd5 /ext/Time
parentef5a6dd776ac4bf49f73d33c2c15049c102661c0 (diff)
downloadperl-368e8af92165901b8847db2c456b3930fb8e583c.tar.gz
In IRIX 5.3 being too POSIXly hides the struct timespec.
p4raw-id: //depot/perl@19085
Diffstat (limited to 'ext/Time')
-rw-r--r--ext/Time/HiRes/hints/irix.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/Time/HiRes/hints/irix.pl b/ext/Time/HiRes/hints/irix.pl
new file mode 100644
index 0000000000..83d98bcab6
--- /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 /;
+}