From: Dan Fandrich Date: Thu, 27 Apr 2023 05:01:23 +0000 (-0700) Subject: tests/http: fix out-of-tree builds X-Git-Tag: curl-8_1_0~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2572e1333ecc58ff3c55fff755ede6c702779829;p=thirdparty%2Fcurl.git tests/http: fix out-of-tree builds Add both lib/ directories (src & build) to the search path so curl_setup.h and its dependencies can be found. Followup-to acd82c8b Ref: #11006 Closes #11036 --- diff --git a/tests/http/clients/Makefile.am b/tests/http/clients/Makefile.am index 386da5a22a..8fdc190b94 100644 --- a/tests/http/clients/Makefile.am +++ b/tests/http/clients/Makefile.am @@ -33,6 +33,8 @@ AUTOMAKE_OPTIONS = foreign nostdinc # $(top_srcdir)/include is for libcurl's external include files AM_CPPFLAGS = -I$(top_srcdir)/include \ + -I$(top_builddir)/lib \ + -I$(top_srcdir)/lib \ -DCURL_DISABLE_DEPRECATION LIBDIR = $(top_builddir)/lib diff --git a/tests/http/clients/ws-data.c b/tests/http/clients/ws-data.c index 1c61d59f72..93bea4ee75 100644 --- a/tests/http/clients/ws-data.c +++ b/tests/http/clients/ws-data.c @@ -36,7 +36,7 @@ /* curl stuff */ #include -#include "../../../lib/curl_setup.h" +#include "curl_setup.h" #ifdef USE_WEBSOCKETS diff --git a/tests/http/clients/ws-pingpong.c b/tests/http/clients/ws-pingpong.c index 4307dea73f..d8cab976e8 100644 --- a/tests/http/clients/ws-pingpong.c +++ b/tests/http/clients/ws-pingpong.c @@ -36,7 +36,7 @@ /* curl stuff */ #include -#include "../../../lib/curl_setup.h" +#include "curl_setup.h" #ifdef USE_WEBSOCKETS