MPE/iX does not have nanosleep() (the test makes
Jarkko Hietaniemi [Thu, 21 Aug 2003 04:35:54 +0000 (04:35 +0000)]
a wrong conclusion of the linking succeeding)

p4raw-id: //depot/perl@20794

ext/Time/HiRes/Makefile.PL

index f9b5550..fc6a155 100644 (file)
@@ -338,7 +338,8 @@ EOD
            $has_nanosleep++;
            $DEFINE .= ' -DTIME_HIRES_NANOSLEEP';
        }
-    } elsif (has_x ("nanosleep (NULL, NULL)")) {
+    } elsif ($^O ne 'mpeix' && # MPE/iX falsely finds nanosleep.
+             has_x ("nanosleep (NULL, NULL)")) {
        $has_nanosleep++;
        $DEFINE .= ' -DTIME_HIRES_NANOSLEEP';
     }