--- motion-4.0.1/motion.h +++ ./motion.h @@ -88,7 +88,7 @@ #endif /* strerror_r() XSI vs GNU */ -#if (defined(BSD)) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) +#if !defined(__GLIBC__) || (defined(BSD)) || ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) #define XSI_STRERROR_R #endif