summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2017-09-06 18:04:16 -0400
committerJay Satiro <raysatiro@yahoo.com>2017-09-07 13:36:35 -0400
commit3dab9f6c71b0a2d7651109c8da43788eaad2a2f5 (patch)
tree547db6fde7b4964388d5235a21a3df31b9643198 /configure.ac
parent08aeae0e3717c6a78bf95e2a5ec17967a4258dbb (diff)
downloadcurl-3dab9f6c71b0a2d7651109c8da43788eaad2a2f5.tar.gz
configure: fix curl_off_t check's include order
- 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
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index aa6fd0a53..ed71f6b8d 100755
--- a/configure.ac
+++ b/configure.ac
@@ -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>
])