tidy-up: drop redundant includes
No binary (build failed)
—
(log yok)
| @@ -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__) | |
| @@ -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 | |
| @@ -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" | |
| @@ -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" | |
| @@ -25,10 +25,6 @@ | |
| #ifdef USE_SSL | |
| - | #ifdef HAVE_SYS_TYPES_H |
| - | #include <sys/types.h> |
| - | #endif |
| - | |
| #include "urldata.h" | |
| #include "cfilters.h" | |
| @@ -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) | |
| @@ -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 | |