Julian Ospald
74d686547e
https://opensource.apple.com/source/Libc/Libc-1244.1.7/include/dirent.h.auto.html ccall picks the wrong one, causes crashes and truncated d_name entries. Wrapping the function in a small C shim, as well as using the CAPI, fixes this.
8 lines
115 B
C
8 lines
115 B
C
#include "dirutils.h"
|
|
|
|
unsigned int
|
|
__posixdir_d_type(struct dirent* d)
|
|
{
|
|
return(d -> d_type);
|
|
}
|