← Commit list

ebc5212dac

Viktor Szakats
Viktor Szakats
2026-07-25
SUCCESS Duration: 438s

Subject

tidy-up: drop redundant includes

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curl_setup.h+4 -5
@@ -506,12 +506,15 @@
#endif
#include <limits.h>
+/* Include after setting system macros that may affect type sizes
+ (e.g. 'off_t' or 'time_t'), or suppress warnings
+ (e.g. '_CRT_SECURE_NO_WARNINGS`), but before including sys/stat.h */
+#include <sys/types.h>
#ifdef _WIN32
# ifdef HAVE_IO_H
# include <io.h>
# endif
-# include <sys/types.h>
# include <sys/stat.h>
/* Large file (>2Gb) support using Win32 functions. */
# define curl_lseek _lseeki64
@@ -830,10 +833,6 @@
#include <time.h>
#include <errno.h>
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#include <sys/stat.h>
#if !defined(_WIN32) || defined(__MINGW32__)
lib/file.c+0 -4
@@ -47,10 +47,6 @@
#include <sys/param.h>
#endif
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
lib/vtls/vtls.c+0 -4
@@ -40,10 +40,6 @@
#include "curl_setup.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#include "urldata.h"
#include "cfilters.h"
#include "cf-dns.h"
lib/vtls/vtls_config.c+0 -4
@@ -40,10 +40,6 @@
#include "curl_setup.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#include "urldata.h"
#include "setopt.h"
#include "strcase.h"
lib/vtls/vtls_scache.c+0 -4
@@ -25,10 +25,6 @@
#ifdef USE_SSL
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#include "urldata.h"
#include "cfilters.h"
src/tool_xattr.h+0 -1
@@ -30,7 +30,6 @@
# define USE_XATTR
#elif (defined(__FreeBSD_version) && (__FreeBSD_version > 500000)) || \
defined(__MidnightBSD_version)
-# include <sys/types.h>
# include <sys/extattr.h>
# define USE_XATTR
#elif defined(_WIN32)
tests/unit/unit1961.c+0 -6
@@ -23,12 +23,6 @@
***************************************************************************/
#include "unitcheck.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#ifndef _WIN32
-#include <sys/socket.h>
-#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif