]> granicus.if.org Git - curl/commitdiff
configure: fix curl_off_t check's include order
authorJay Satiro <raysatiro@yahoo.com>
Wed, 6 Sep 2017 22:04:16 +0000 (18:04 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 7 Sep 2017 17:36:35 +0000 (13:36 -0400)
- Prepend srcdir include path instead of append.

Prior to this change it was possible that during the check for the size
of curl_off_t the include path of a user's already installed curl could
come before the include path of the to-be-built curl, resulting in the
system.h of the former being incorrectly included for that check.

Closes https://github.com/curl/curl/pull/1870

configure.ac

index aa6fd0a533707456155c24fc0ec29cc1898800b3..ed71f6b8d1d5457d6eeb7b0f1300626594e46aee 100755 (executable)
@@ -3253,7 +3253,7 @@ AC_CHECK_SIZEOF(time_t)
 AC_CHECK_SIZEOF(off_t)
 
 o=$CPPFLAGS
-CPPFLAGS="$CPPFLAGS -I$srcdir/include"
+CPPFLAGS="-I$srcdir/include $CPPFLAGS"
 AC_CHECK_SIZEOF(curl_off_t, unused , [
 #include <curl/system.h>
 ])