We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6639ac4 commit d261381Copy full SHA for d261381
src/basic/dirent-util.h
@@ -36,7 +36,8 @@ struct dirent *readdir_no_dot(DIR *dirp);
36
/* Only if 64-bit off_t is enabled struct dirent + struct dirent64 are actually the same. We require this, and
37
* we want them to be interchangeable to make getdents64() work, hence verify that. */
38
assert_cc(_FILE_OFFSET_BITS == 64);
39
-#if HAVE_STRUCT_DIRENT64
+/* dirent64 is a macro on musl */
40
+#if HAVE_STRUCT_DIRENT64 && !defined(dirent64)
41
assert_cc(sizeof(struct dirent) == sizeof(struct dirent64));
42
assert_cc(offsetof(struct dirent, d_ino) == offsetof(struct dirent64, d_ino));
43
assert_cc(sizeof_field(struct dirent, d_ino) == sizeof_field(struct dirent64, d_ino));
0 commit comments