X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=gcc-compat.h;h=1964e78bfd527d7c9ade762c7473ecc60ba72e93;hb=7231c544e2ee3f53f5b2c8bc393b7fd1e0b8d0a7;hp=ec24db9250afbe4bff0786b0c95747dc297933db;hpb=22a0aa79753b19604a6fa4273f1479ef71dbf06d;p=adu.git diff --git a/gcc-compat.h b/gcc-compat.h index ec24db9..1964e78 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -71,3 +71,14 @@ * header files. */ #define _static_inline_ static inline + +/** + * On systems whihout large file support (BSD) there is no * struct stat64 and + * no lstat64(). + */ +#ifndef HAVE_STAT64 + /** Use the usual stat structure. */ + #define stat64 stat + /** Use the usual lstat() function. */ + #define lstat64 lstat +#endif