Junio C Hamano <gitster@xxxxxxxxx> writes: > I do not offhand know we also use fdopendir() elsewhere. I strongly > suspect we do not. Perhaps some platforms do POSIX.1-2001 but not > ready for POSIX.1-2008 or something silly like that? Searching "macos fdopendir" gives a few hits from other projects, all saying that before macOS 10.10 they did not have fdopendir() and their code failed to build on macs.