aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2017-02-03 10:15:40 +0100
committerDiego Biurrun <diego@biurrun.de>2017-02-06 15:43:56 +0100
commit0ce3761c781f2c2de40a5a8a99563878804f47cc (patch)
tree54508293373502a13b02be86432f01463f0cc6fa
parentf7ec7f546f0021d28da284b024416b916b61c974 (diff)
downloadffmpeg-0ce3761c781f2c2de40a5a8a99563878804f47cc.tar.gz
configure: Add stdlib.h #include to CPPFLAGS check helper functions
This ensures that added CPPFLAGS are validated against libc headers.
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 555dc8861e..32ab7329e3 100755
--- a/configure
+++ b/configure
@@ -872,7 +872,7 @@ check_code(){
check_cppflags(){
log check_cppflags "$@"
check_cpp "$@" <<EOF && append CPPFLAGS "$@"
-int x;
+#include <stdlib.h>;
EOF
}
@@ -1166,7 +1166,7 @@ check_host_cpp(){
check_host_cppflags(){
log check_host_cppflags "$@"
check_host_cpp "$@" <<EOF && append host_cppflags "$@"
-int x;
+#include <stdlib.h>;
EOF
}