Skip to content

Commit d261381

Browse files
Jane Rachingerkcxt
Jane Rachinger
authored andcommitted
1 parent 6639ac4 commit d261381

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/basic/dirent-util.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ struct dirent *readdir_no_dot(DIR *dirp);
3636
/* Only if 64-bit off_t is enabled struct dirent + struct dirent64 are actually the same. We require this, and
3737
* we want them to be interchangeable to make getdents64() work, hence verify that. */
3838
assert_cc(_FILE_OFFSET_BITS == 64);
39-
#if HAVE_STRUCT_DIRENT64
39+
/* dirent64 is a macro on musl */
40+
#if HAVE_STRUCT_DIRENT64 && !defined(dirent64)
4041
assert_cc(sizeof(struct dirent) == sizeof(struct dirent64));
4142
assert_cc(offsetof(struct dirent, d_ino) == offsetof(struct dirent64, d_ino));
4243
assert_cc(sizeof_field(struct dirent, d_ino) == sizeof_field(struct dirent64, d_ino));

0 commit comments

Comments
 (0)