summaryrefslogtreecommitdiff
path: root/ext/Time/HiRes/HiRes.xs
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-11-04 12:02:51 +0000
committerSteve Peters <steve@fisharerojo.org>2005-11-04 12:02:51 +0000
commit70cf0185be8a46ed25b37689143a5eb26c7909eb (patch)
tree6e0d28efaae181e732147c1ba9cba57dfe0cf55c /ext/Time/HiRes/HiRes.xs
parentfaee0e31635beba10b49968c70b82a3fef8c06bf (diff)
downloadperl-70cf0185be8a46ed25b37689143a5eb26c7909eb.tar.gz
Upgrade to Time-HiRes-1.80
p4raw-id: //depot/perl@25985
Diffstat (limited to 'ext/Time/HiRes/HiRes.xs')
-rw-r--r--ext/Time/HiRes/HiRes.xs5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/Time/HiRes/HiRes.xs b/ext/Time/HiRes/HiRes.xs
index 666de93873..246353103a 100644
--- a/ext/Time/HiRes/HiRes.xs
+++ b/ext/Time/HiRes/HiRes.xs
@@ -361,7 +361,8 @@ gettimeofday (struct timeval *tp, void *tpz)
/* Do not use H A S _ N A N O S L E E P
- * so that Perl Configure doesn't scan for it.
+ * so that Perl Configure doesn't scan for it (and pull in -lrt and
+ * the like which are not usually good ideas for the default Perl).
* (We are part of the core perl now.)
* The TIME_HIRES_NANOSLEEP is set by Makefile.PL. */
#if !defined(HAS_USLEEP) && defined(TIME_HIRES_NANOSLEEP)
@@ -409,7 +410,7 @@ hrt_usleep(unsigned long usec)
}
#endif /* #if !defined(HAS_USLEEP) && defined(WIN32) */
-#if !defined(HAS_USLEEP) && defined(HAS_NANOSLEEP)
+#if !defined(HAS_USLEEP) && defined(TIME_HIRES_NANOSLEEP)
#define HAS_USLEEP
#define usleep hrt_usleep /* could conflict with ncurses for static build */