]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib and tests: add missing curl.h includes
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 7 Sep 2022 10:19:29 +0000 (12:19 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 12 Sep 2022 07:41:47 +0000 (09:41 +0200)
Closes https://github.com/curl/curl/pull/9453

lib/conncache.h
lib/curl_hmac.h
lib/curl_sha256.h
lib/dynbuf.h
lib/memdebug.h
lib/socketpair.h
lib/vtls/keylog.c
lib/wildcard.h
tests/server/util.h

index 6ec27574337f44399da5c59e807f0799b00bed5f..94664bc357acacd7c834fcaf36af0e39e83d2a4d 100644 (file)
@@ -31,6 +31,7 @@
  * be shared.
  */
 
+#include <curl/curl.h>
 #include "timeval.h"
 
 struct connectdata;
index 77dce0f165fec071edccf36d4550b1abcba346f5..36c0bd62e5f473ba47fd79d29e6b126ff6c9b66f 100644 (file)
@@ -26,6 +26,8 @@
 
 #ifndef CURL_DISABLE_CRYPTO_AUTH
 
+#include <curl/curl.h>
+
 #define HMAC_MD5_LENGTH 16
 
 typedef CURLcode (* HMAC_hinit_func)(void *context);
index 82fcdff8eabaed15e8c9d33472926ba57ce99170..754c761fb33d7ec4b9a08e8bdc32cfb0e29ee002 100644 (file)
@@ -26,6 +26,7 @@
  ***************************************************************************/
 
 #ifndef CURL_DISABLE_CRYPTO_AUTH
+#include <curl/curl.h>
 #include "curl_hmac.h"
 
 extern const struct HMAC_params Curl_HMAC_SHA256[1];
index 7deba6a5fd7964a75111c1e9f9426a7ae3236cfc..26c8cd54273f79aa105f1130e3a45e6368646338 100644 (file)
@@ -24,6 +24,8 @@
  *
  ***************************************************************************/
 
+#include <curl/curl.h>
+
 #ifndef BUILDING_LIBCURL
 /* this renames the functions so that the tool code can use the same code
    without getting symbol collisions */
index 7a99e9c58a3b90fc2452628389dea252545c7065..8f3e9ef9744e38fcc15228a548805942dda0c4c2 100644 (file)
@@ -30,6 +30,8 @@
  * as well as the library. Do not mix with library internals!
  */
 
+#include <curl/curl.h>
+
 #if defined(__GNUC__) && __GNUC__ >= 3
 #  define ALLOC_FUNC __attribute__((malloc))
 #  define ALLOC_SIZE(s) __attribute__((alloc_size(s)))
index f91a3c65116008ae52ef55e5a422dc3df2bdc3b8..de70df673aad898270661d5ac3bdb8c540768b28 100644 (file)
@@ -26,6 +26,8 @@
 
 #include "curl_setup.h"
 #ifndef HAVE_SOCKETPAIR
+#include <curl/curl.h>
+
 int Curl_socketpair(int domain, int type, int protocol,
                     curl_socket_t socks[2]);
 #else
index 7471217921275df6ab0fdda2215baa40e0781d6f..1952a690caacc8bb9869a6c334daaa1375600be8 100644 (file)
@@ -24,6 +24,7 @@
 #include "curl_setup.h"
 
 #include "keylog.h"
+#include <curl/curl.h>
 
 /* The last #include files should be: */
 #include "curl_memory.h"
index f9d2167bf2647607e5f5bc8ae48838d908c054ce..21e933b9a4b917e42157a3cc0c306b05b5b39b49 100644 (file)
@@ -27,6 +27,7 @@
 #include "curl_setup.h"
 
 #ifndef CURL_DISABLE_FTP
+#include <curl/curl.h>
 #include "llist.h"
 
 /* list of wildcard process states */
index 2c29fd008c0930d87c46afc48bc1f0141cbe51e7..76ca37140d4d261c112cbc70e44b8cc4f1941002 100644 (file)
@@ -83,6 +83,8 @@ void restore_signal_handlers(bool keep_sigalrm);
 
 #ifdef USE_UNIX_SOCKETS
 
+#include <curl/curl.h> /* for curl_socket_t */
+
 #ifdef HAVE_SYS_UN_H
 #include <sys/un.h> /* for sockaddr_un */
 #endif /* HAVE_SYS_UN_H */