summaryrefslogtreecommitdiff
path: root/iperlsys.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-25 08:28:57 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-25 08:28:57 +0000
commit9423c6fcd41d6bc971cab01e8cdfbf515a9aaaea (patch)
tree16f263e03a5819380adcd3555d14855fbf85e32e /iperlsys.h
parent7c2ea1c74a297a6e4f5e99f73e5cadca30825f36 (diff)
downloadperl-9423c6fcd41d6bc971cab01e8cdfbf515a9aaaea.tar.gz
assorted tweaks
p4raw-id: //depot/perl@3472
Diffstat (limited to 'iperlsys.h')
-rw-r--r--iperlsys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/iperlsys.h b/iperlsys.h
index 5f0ed0c92a..1c376ef0cd 100644
--- a/iperlsys.h
+++ b/iperlsys.h
@@ -597,7 +597,11 @@ public:
#define PerlLIO_ioctl(fd, u, buf) ioctl((fd), (u), (buf))
#define PerlLIO_isatty(fd) isatty((fd))
#define PerlLIO_lseek(fd, offset, mode) lseek((fd), (offset), (mode))
+#ifdef HAS_LSTAT
#define PerlLIO_lstat(name, buf) lstat((name), (buf))
+#else
+#define PerlLIO_lstat(name, buf) PerlLIO_stat((name), (buf))
+#endif
#define PerlLIO_mktemp(file) mktemp((file))
#define PerlLIO_mkstemp(file) mkstemp((file))
#define PerlLIO_open(file, flag) open((file), (flag))