X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fsys%2Fstatvfs.h;h=0a3ac9e098906a374477e2060bfc490761f7d2ab;hp=fd22faba8afa0d554b01e7e545805f89f71995fd;hb=aaa9eb5101e3a748218fb9373dd9655b50582da2;hpb=114c80f1416617399c85c2df09dd307532399903 diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h index fd22faba..0a3ac9e0 100644 --- a/include/sys/statvfs.h +++ b/include/sys/statvfs.h @@ -1,6 +1,9 @@ #ifndef _SYS_STATVFS_H #define _SYS_STATVFS_H +#ifdef __cplusplus +extern "C" { +#endif #define __NEED_fsblkcnt_t #define __NEED_fsfilcnt_t @@ -38,5 +41,15 @@ int fstatvfs (int, struct statvfs *); #define ST_NOATIME 1024 #define ST_NODIRATIME 2048 +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define statvfs64 statvfs +#define fstatvfs64 fstatvfs +#define fsblkcnt64_t fsblkcnt_t +#define fsfilcnt64_t fsfilcnt_t +#endif + +#ifdef __cplusplus +} +#endif #endif