Skip to content

Commit

Permalink
SPECIFIC(MUSL): there are no LFS64 symbol aliases on musl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jane Rachinger authored and calebccff committed Aug 1, 2023
1 parent 6639ac4 commit d261381
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/basic/dirent-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ struct dirent *readdir_no_dot(DIR *dirp);
/* Only if 64-bit off_t is enabled struct dirent + struct dirent64 are actually the same. We require this, and
* we want them to be interchangeable to make getdents64() work, hence verify that. */
assert_cc(_FILE_OFFSET_BITS == 64);
#if HAVE_STRUCT_DIRENT64
/* dirent64 is a macro on musl */
#if HAVE_STRUCT_DIRENT64 && !defined(dirent64)
assert_cc(sizeof(struct dirent) == sizeof(struct dirent64));
assert_cc(offsetof(struct dirent, d_ino) == offsetof(struct dirent64, d_ino));
assert_cc(sizeof_field(struct dirent, d_ino) == sizeof_field(struct dirent64, d_ino));
Expand Down

0 comments on commit d261381

Please sign in to comment.