configure: Refactor setting of feature test macro _XOPEN_SOURCE
[ffmpeg.git] / configure
index 110a3fd4ae27819949a3f5eaa502d26d2c96a52f..b9707c563875897fa5c7408ca80cfa129c668653 100755 (executable)
--- a/configure
+++ b/configure
@@ -4229,6 +4229,9 @@ probe_libc(){
     elif check_${pfx}cpp_condition sys/brand.h "defined LABELED_BRAND_NAME"; then
         eval ${pfx}libc_type=solaris
         add_${pfx}cppflags -D__EXTENSIONS__ -D_XOPEN_SOURCE=600
+    # FFmpeg needs a POSIX.1-2001/XSI compliant C library
+    else
+        add_${pfx}cppflags -D_XOPEN_SOURCE=600
     fi
 }