]> git.ipfire.org Git - thirdparty/git.git/commit
diff-no-index: do not reference .d_type member of struct dirent
authorJunio C Hamano <gitster@pobox.com>
Wed, 18 Jun 2025 20:04:12 +0000 (13:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Jun 2025 20:05:29 +0000 (13:05 -0700)
commitd094e05ea596145aa4362cf957f9d99663d4a2e3
treedc8bd0e1897af60240e935f196f479536c49f1d1
parent09fb155f11128b505c227aae673de957c9388240
diff-no-index: do not reference .d_type member of struct dirent

Some platforms like AIX lack .d_type member in "struct dirent"; use
the DTYPE(e) macro instead of a direct reference to e->d_type and
when it yields DT_UNKNOWN, find the real type with get_dtype().

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-no-index.c