]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/http: fix out-of-tree builds
authorDan Fandrich <dan@coneharvesters.com>
Thu, 27 Apr 2023 05:01:23 +0000 (22:01 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 27 Apr 2023 07:15:41 +0000 (00:15 -0700)
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
tests/http/clients/ws-data.c
tests/http/clients/ws-pingpong.c

index 386da5a22a7c67e3eb1960d9f4a4ec989ed0a02d..8fdc190b94eead5ec3b95781dc36fb6e62c3ab5c 100644 (file)
@@ -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
index 1c61d59f7252740e82b4aeaa4c3d4fdde7d4eb5e..93bea4ee75271aa9f36ec77e2db8730624b20d07 100644 (file)
@@ -36,7 +36,7 @@
 
 /* curl stuff */
 #include <curl/curl.h>
-#include "../../../lib/curl_setup.h"
+#include "curl_setup.h"
 
 #ifdef USE_WEBSOCKETS
 
index 4307dea73f2128797de646d0be8fe9e0517909a7..d8cab976e8e96a9b21388eaa89c676ae708bbb80 100644 (file)
@@ -36,7 +36,7 @@
 
 /* curl stuff */
 #include <curl/curl.h>
-#include "../../../lib/curl_setup.h"
+#include "curl_setup.h"
 
 #ifdef USE_WEBSOCKETS