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