lib and tests: add missing curl.h includes

Closes https://github.com/curl/curl/pull/9453
This commit is contained in:
Marcel Raad 2022-09-07 12:19:29 +02:00
parent 4a7c10c6cc
commit d7dceb57d1
No known key found for this signature in database
GPG key ID: 33C416EFAE4D6F02
9 changed files with 14 additions and 0 deletions

View file

@ -31,6 +31,7 @@
* be shared. * be shared.
*/ */
#include <curl/curl.h>
#include "timeval.h" #include "timeval.h"
struct connectdata; struct connectdata;

View file

@ -26,6 +26,8 @@
#ifndef CURL_DISABLE_CRYPTO_AUTH #ifndef CURL_DISABLE_CRYPTO_AUTH
#include <curl/curl.h>
#define HMAC_MD5_LENGTH 16 #define HMAC_MD5_LENGTH 16
typedef CURLcode (* HMAC_hinit_func)(void *context); typedef CURLcode (* HMAC_hinit_func)(void *context);

View file

@ -26,6 +26,7 @@
***************************************************************************/ ***************************************************************************/
#ifndef CURL_DISABLE_CRYPTO_AUTH #ifndef CURL_DISABLE_CRYPTO_AUTH
#include <curl/curl.h>
#include "curl_hmac.h" #include "curl_hmac.h"
extern const struct HMAC_params Curl_HMAC_SHA256[1]; extern const struct HMAC_params Curl_HMAC_SHA256[1];

View file

@ -24,6 +24,8 @@
* *
***************************************************************************/ ***************************************************************************/
#include <curl/curl.h>
#ifndef BUILDING_LIBCURL #ifndef BUILDING_LIBCURL
/* this renames the functions so that the tool code can use the same code /* this renames the functions so that the tool code can use the same code
without getting symbol collisions */ without getting symbol collisions */

View file

@ -30,6 +30,8 @@
* as well as the library. Do not mix with library internals! * as well as the library. Do not mix with library internals!
*/ */
#include <curl/curl.h>
#if defined(__GNUC__) && __GNUC__ >= 3 #if defined(__GNUC__) && __GNUC__ >= 3
# define ALLOC_FUNC __attribute__((malloc)) # define ALLOC_FUNC __attribute__((malloc))
# define ALLOC_SIZE(s) __attribute__((alloc_size(s))) # define ALLOC_SIZE(s) __attribute__((alloc_size(s)))

View file

@ -26,6 +26,8 @@
#include "curl_setup.h" #include "curl_setup.h"
#ifndef HAVE_SOCKETPAIR #ifndef HAVE_SOCKETPAIR
#include <curl/curl.h>
int Curl_socketpair(int domain, int type, int protocol, int Curl_socketpair(int domain, int type, int protocol,
curl_socket_t socks[2]); curl_socket_t socks[2]);
#else #else

View file

@ -24,6 +24,7 @@
#include "curl_setup.h" #include "curl_setup.h"
#include "keylog.h" #include "keylog.h"
#include <curl/curl.h>
/* The last #include files should be: */ /* The last #include files should be: */
#include "curl_memory.h" #include "curl_memory.h"

View file

@ -27,6 +27,7 @@
#include "curl_setup.h" #include "curl_setup.h"
#ifndef CURL_DISABLE_FTP #ifndef CURL_DISABLE_FTP
#include <curl/curl.h>
#include "llist.h" #include "llist.h"
/* list of wildcard process states */ /* list of wildcard process states */

View file

@ -83,6 +83,8 @@ void restore_signal_handlers(bool keep_sigalrm);
#ifdef USE_UNIX_SOCKETS #ifdef USE_UNIX_SOCKETS
#include <curl/curl.h> /* for curl_socket_t */
#ifdef HAVE_SYS_UN_H #ifdef HAVE_SYS_UN_H
#include <sys/un.h> /* for sockaddr_un */ #include <sys/un.h> /* for sockaddr_un */
#endif /* HAVE_SYS_UN_H */ #endif /* HAVE_SYS_UN_H */