diff options
author | Andy Broad <andy@broad.ology.org.uk> | 2015-08-19 20:03:03 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-09-05 11:12:46 -0400 |
commit | 4e4f9c123cc6d12aaf23ec22d396580a19d16339 (patch) | |
tree | 092a3fe2db6d4d4d6366e47a5d348a489c964378 /unixish.h | |
parent | afa49a035adc65db4ef136b041b3e9bf8050425d (diff) | |
download | perl-4e4f9c123cc6d12aaf23ec22d396580a19d16339.tar.gz |
amigaos4: use afstat for fstat
Diffstat (limited to 'unixish.h')
-rw-r--r-- | unixish.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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)) |