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.
*/
#include <curl/curl.h>
#include "timeval.h"
struct connectdata;

View 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);

View 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];

View 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 */

View 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)))

View 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

View 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"

View 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 */

View 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 */