apply the logic to tests that include 3rd-party headers

This commit is contained in:
Viktor Szakats 2025-07-09 02:59:16 +02:00
parent 5d4e3c85ae
commit 9148ea61d5
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
7 changed files with 16 additions and 1 deletions

View file

@ -25,6 +25,8 @@
#ifdef HAVE_INET_PTON
#include "curl_mem_undef.h" /* include BEFORE system headers */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
@ -32,6 +34,7 @@
#include <arpa/inet.h>
#endif
#include "curl_memory.h"
#include "memdebug.h"
/* to prevent libcurl from closing our socket */

View file

@ -23,6 +23,8 @@
***************************************************************************/
#include "first.h"
#include "curl_mem_undef.h" /* include BEFORE system headers */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
@ -34,6 +36,8 @@
#endif
#include "testutil.h"
#include "curl_memory.h"
#include "memdebug.h"
#define RTP_PKT_CHANNEL(p) ((int)((unsigned char)((p)[1])))

View file

@ -23,8 +23,8 @@
***************************************************************************/
#include "unitcheck.h"
#include "curl_mem_undef.h" /* include BEFORE system headers */
#include "tool_xattr.h"
#include "memdebug.h" /* LAST include file */
static CURLcode test_tool1621(char *arg)

View file

@ -23,6 +23,8 @@
***************************************************************************/
#include "unitcheck.h"
#include "curl_mem_undef.h" /* include BEFORE system headers */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

View file

@ -23,6 +23,8 @@
***************************************************************************/
#include "unitcheck.h"
#include "curl_mem_undef.h" /* include BEFORE system headers */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

View file

@ -23,6 +23,8 @@
***************************************************************************/
#include "unitcheck.h"
#include "curl_mem_undef.h" /* include BEFORE system headers */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

View file

@ -23,6 +23,8 @@
***************************************************************************/
#include "unitcheck.h"
#include "curl_mem_undef.h" /* include BEFORE system headers */
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif