[libav-devel] [PATCH] configure: Provide a safe default for unknonw libcs

Luca Barbato lu_zero at gentoo.org
Thu Sep 18 08:11:46 CEST 2014


Support musl out of box.
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 81e1d3f..f2d8881 100755
--- a/configure
+++ b/configure
@@ -3655,6 +3655,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
+    else
+        eval ${pfx}libc_type=default
+        add_${pfx}cppflags -D_DEFAULT_SOURCE
     fi
 }
 
-- 
1.9.0



More information about the libav-devel mailing list