Skip to content

Commit 4e3449d

Browse files
authored
audcore: Don't include linux/stat.h
On glibc, this is redundant (`sys/stat.h` includes `bits/statx.h` includes `linux/stat.h`). On musl, it results in an error that `struct statx` and `struct statx_timestamp` are being redefined. `sys/stat.h` is the proper interface to use when using `statx` on Linux.
1 parent 5d1a7fc commit 4e3449d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/libaudcore/vfs_local.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ bool LocalTransport::get_file_timestamps(const char * filename, int64_t * mtime,
446446
#include <sys/stat.h>
447447
#include <sys/types.h>
448448

449-
#include <linux/stat.h>
450449
#include <sys/syscall.h>
451450
#include <unistd.h>
452451

0 commit comments

Comments
 (0)