X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=gcc-compat.h;h=5bfaa096b71c115d9a9e69aec7090fb982348fa9;hp=ec24db9250afbe4bff0786b0c95747dc297933db;hb=f56aa749790691ac3a44cc9c67a0ee7055939f78;hpb=5008f98a8208d96c3c777476d6df7534c6d2ca49 diff --git a/gcc-compat.h b/gcc-compat.h index ec24db9..5bfaa09 100644 --- a/gcc-compat.h +++ b/gcc-compat.h @@ -34,7 +34,7 @@ /** * Let gcc check format strings also for our own functions. * - * Functions marked with \p __printf will be cheked by gcc for format string + * Functions marked with \p __printf will be checked by gcc for format string * bugs, just like printf() if -Wformat-security is enabled. * * \param p The number of the "format string" parameter. @@ -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