tidy-up: drop redundant includes

`sys/types.h` and `sys/socket.h` (non-Win32). They are included via
`curl/curl.h` and `curl_setup.h`.

This drops `HAVE_SYS_TYPES_H` guards from the codebase. It's safe
because `sys/types.h` (POSIX) is already required unconditionally by
`curl/curl.h`. It remains used in feature checks by both autotools and
cmake; to be reviewed in a future step.

Closes #22374
This commit is contained in:
Viktor Szakats 2026-06-28 13:10:38 +02:00
parent c4dcdb8388
commit ebc5212dac
No known key found for this signature in database
7 changed files with 4 additions and 28 deletions

View file

@ -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