From: Jarkko Hietaniemi Date: Mon, 7 Jul 2003 18:26:35 +0000 (+0000) Subject: The nanosleep() probe was kaputt, fixed by Mark Bixby. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c1363767efe2b8f3d64ce0a8a3d246d164420ee8;p=p5sagit%2Fp5-mst-13.2.git The nanosleep() probe was kaputt, fixed by Mark Bixby. p4raw-id: //depot/perl@20061 --- diff --git a/ext/Time/HiRes/Makefile.PL b/ext/Time/HiRes/Makefile.PL index 86cd3d5..61f2659 100644 --- a/ext/Time/HiRes/Makefile.PL +++ b/ext/Time/HiRes/Makefile.PL @@ -129,9 +129,7 @@ sub try_compile_and_link { $cccmd = "$Config{'cc'} -o $tmp $ccflags $tmp.c @$LIBS $errornull" unless defined $cccmd; - if ($^O eq 'mpeix') { - $cccmd = 'MPEAUTOCONF=1 '.$cccmd; - } elsif ($^O eq 'VMS') { + if ($^O eq 'VMS') { open( CMDFILE, ">$tmp.com" ); print CMDFILE "\$ SET MESSAGE/NOFACILITY/NOSEVERITY/NOIDENT/NOTEXT\n"; print CMDFILE "\$ $cccmd\n"; @@ -336,8 +334,10 @@ EOD print "Looking for nanosleep()... "; my $has_nanosleep; if (exists $Config{d_nanosleep}) { - $has_nanosleep++ if $Config{d_nanosleep}; - $DEFINE .= ' -DTIME_HIRES_NANOSLEEP'; + if ($Config{d_nanosleep}) { + $has_nanosleep++; + $DEFINE .= ' -DTIME_HIRES_NANOSLEEP'; + } } elsif (has_x ("nanosleep (NULL, NULL)")) { $has_nanosleep++; $DEFINE .= ' -DTIME_HIRES_NANOSLEEP';