summaryrefslogtreecommitdiff
path: root/unixish.h
diff options
context:
space:
mode:
authorAndy Broad <andy@broad.ology.org.uk>2015-08-19 20:03:03 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-09-05 11:12:46 -0400
commit4e4f9c123cc6d12aaf23ec22d396580a19d16339 (patch)
tree092a3fe2db6d4d4d6366e47a5d348a489c964378 /unixish.h
parentafa49a035adc65db4ef136b041b3e9bf8050425d (diff)
downloadperl-4e4f9c123cc6d12aaf23ec22d396580a19d16339.tar.gz
amigaos4: use afstat for fstat
Diffstat (limited to 'unixish.h')
-rw-r--r--unixish.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/unixish.h b/unixish.h
index 2f0d8f3b9f..0c7de45744 100644
--- a/unixish.h
+++ b/unixish.h
@@ -122,7 +122,16 @@
#define fwrite1 fwrite
#define Stat(fname,bufptr) stat((fname),(bufptr))
-#define Fstat(fd,bufptr) fstat((fd),(bufptr))
+
+#if defined(__amigaos4__)
+int afstat(int fd, struct stat *statb);
+# define Fstat(fd,bufptr) afstat((fd),(bufptr))
+#endif
+
+#ifndef Fstat
+# define Fstat(fd,bufptr) fstat((fd),(bufptr))
+#endif
+
#define Fflush(fp) fflush(fp)
#define Mkdir(path,mode) mkdir((path),(mode))