From 2572e1333ecc58ff3c55fff755ede6c702779829 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 26 Apr 2023 22:01:23 -0700 Subject: [PATCH] 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 --- tests/http/clients/Makefile.am | 2 ++ tests/http/clients/ws-data.c | 2 +- tests/http/clients/ws-pingpong.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.3