mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:03:32 +03:00
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:
parent
c4dcdb8388
commit
ebc5212dac
7 changed files with 4 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue