diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h index 2dac3f9..aa16c50 100644 --- a/include/sys/cdefs.h +++ b/include/sys/cdefs.h @@ -28,6 +28,10 @@ #ifndef SYS_CDEFS_H #define SYS_CDEFS_H +#ifdef __APPLE__ +#include_next +#else + #include #ifdef __GLIBC__ @@ -53,4 +57,6 @@ #define __unreachable() __builtin_unreachable() +#endif + #endif diff --git a/include/string.h b/include/string.h index 68108f6..9707bcd 100644 --- a/include/string.h +++ b/include/string.h @@ -38,7 +38,9 @@ extern "C" { #endif +#ifndef __APPLE__ void strmode(mode_t, char *); +#endif #ifndef HAVE_STRLCPY size_t strlcpy(char *d, const char *s, size_t n); #endif