X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fsys%2Fstatfs.h;h=d8128a25894c2b647fbd4f673efa927e58737511;hp=05c9b13049fd440992b94eca851fa12a99977c44;hb=64623cd59a5e72c6322548bca3827a75d5d11918;hpb=32b82cf5cdc282839cc02c57a50c991e376f0348 diff --git a/include/sys/statfs.h b/include/sys/statfs.h index 05c9b130..d8128a25 100644 --- a/include/sys/statfs.h +++ b/include/sys/statfs.h @@ -1,6 +1,12 @@ #ifndef _SYS_STATFS_H #define _SYS_STATFS_H +#ifdef __cplusplus +extern "C" { +#endif + +#include + #include typedef struct { @@ -12,4 +18,15 @@ typedef struct { int statfs (const char *, struct statfs *); int fstatfs (int, struct statfs *); +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define statfs64 statfs +#define fstatfs64 fstatfs +#define fsblkcnt64_t fsblkcnt_t +#define fsfilcnt64_t fsfilcnt_t +#endif + +#ifdef __cplusplus +} +#endif + #endif