# HG changeset patch # User diego # Date 1363689748 0 # Node ID aff0f7d458720a7326f3909f9457cd33ed4ee1b9 # Parent 209180129a454b29c042b6ca3ad41cfe4c1a6781 configure: Set CPPFLAGS to enable commonly used system features MPlayer relies on POSIX, XOPEN and C99 features being available. However, the necessary CPPFLAGS to enable those features are not set explicitly; they are just used in some configure tests. Set flags for these features explicitly in order to ensure they are always available. diff -r 209180129a45 -r aff0f7d45872 configure --- a/configure Tue Mar 19 10:42:26 2013 +0000 +++ b/configure Tue Mar 19 10:42:28 2013 +0000 @@ -2721,6 +2721,8 @@ warn_cflags=yes fi +CFLAGS="-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS" + if test "$cc_vendor" = "gnu" ; then cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize" cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS" @@ -2730,8 +2732,6 @@ cflag_check -Wdisabled-optimization && WARN_CFLAGS="-Wdisabled-optimization $WARN_CFLAGS" cflag_check -Wmissing-prototypes && WARN_CFLAGS="-Wmissing-prototypes $WARN_CFLAGS" cflag_check -Wstrict-prototypes && WARN_CFLAGS="-Wstrict-prototypes $WARN_CFLAGS" -else - CFLAGS="-D_ISOC99_SOURCE $CFLAGS" fi cflag_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer"