mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-06 23:02:10 +03:00
25e6fee27f
these badly pollute the namespace with macros whenever _GNU_SOURCE is defined, which is always the case with g++, and especially tends to interfere with C++ constructs. as our implementation of these was macro-only, their removal cannot affect any existing binaries. at the source level, portable software should be prepared for them not to exist. for now, they are left in place with explicit _LARGEFILE64_SOURCE. this provides an easy temporary path for integrators/distributions to get packages building again right away if they break while working on a proper, upstreamable fix. the intent is that this be a very short-term measure and that the macros be removed entirely in the next release cycle.
33 lines
484 B
C
33 lines
484 B
C
#ifndef _SYS_STATFS_H
|
|
#define _SYS_STATFS_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
#include <sys/statvfs.h>
|
|
|
|
typedef struct __fsid_t {
|
|
int __val[2];
|
|
} fsid_t;
|
|
|
|
#include <bits/statfs.h>
|
|
|
|
int statfs (const char *, struct statfs *);
|
|
int fstatfs (int, struct statfs *);
|
|
|
|
#if defined(_LARGEFILE64_SOURCE)
|
|
#define statfs64 statfs
|
|
#define fstatfs64 fstatfs
|
|
#define fsblkcnt64_t fsblkcnt_t
|
|
#define fsfilcnt64_t fsfilcnt_t
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|