aboutsummaryrefslogtreecommitdiffstats
path: root/testing/motion/strerror_r.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/motion/strerror_r.patch')
-rw-r--r--testing/motion/strerror_r.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/motion/strerror_r.patch b/testing/motion/strerror_r.patch
new file mode 100644
index 0000000000..bbe625ecb7
--- /dev/null
+++ b/testing/motion/strerror_r.patch
@@ -0,0 +1,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
+