aboutsummaryrefslogtreecommitdiffstats
path: root/testing/motion/strerror_r.patch
blob: bbe625ecb7fe94e8b3bb78d97505b0f2599c91e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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