mirror of https://github.com/ericonr/erm.git
Fix build on older glibc versions.
_POSIX_C_SOURCE is necessary for getopt(3), and _DEFAULT_SOURCE is necessary for the d_type enumerations in struct dirent. Since we are here, use the C11 standard explicitly. These fixes only allow us to build with glibc>=2.28, which is when the <threads.h> header was added [1], necessary to access the thread_local macro. [1] https://stackoverflow.com/a/22875599
This commit is contained in:
parent
e56abc9ff9
commit
90693c6d04