Created originally on Bitbucket by danchr (Dan Villiom Podlaski Christiansen)
-
Add checks for posix_fadvise() and posix_fallocate()
macOS Sierra does not define these, and CPython 3.5 does not include them in its 'posix' module. Without this, translation on my Mac fails with an assertion failure when posix_fadvise() exists but the constants do not.
-
Add check for HAVE_DIRENT_H
_posixsubprocess.c uses this symbol to optionally include the header, but there's no logic for actually defining it. As the 'DIR' structure is defined in 'dirent.h' on macOS, C-source compilation fails without it.