configure: Add stdlib.h #include to CPPFLAGS check helper functions

This ensures that added CPPFLAGS are validated against libc headers.
This commit is contained in:
Diego Biurrun 2017-02-03 10:15:40 +01:00
parent f7ec7f546f
commit 0ce3761c78
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -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
}