include cleanup

This commit is contained in:
Max Kellermann
2020-07-23 16:14:23 +02:00
parent 7daf80a0c0
commit 155fc8fa5a
10 changed files with 18 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2019 Max Kellermann <max.kellermann@gmail.com>
* Copyright 2016-2020 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -31,13 +31,14 @@
#define NET_ADDRESS_INFO_HXX
#include "SocketAddress.hxx"
#include "util/Compiler.h"
#include <utility>
#ifdef _WIN32
#include <ws2tcpip.h>
#include <ws2tcpip.h> // IWYU pragma: export
#else
#include <netdb.h>
#include <netdb.h> // IWYU pragma: export
#endif
constexpr struct addrinfo

View File

@@ -30,7 +30,7 @@
#ifndef ALLOCATED_SOCKET_ADDRESS_HXX
#define ALLOCATED_SOCKET_ADDRESS_HXX
#include "SocketAddress.hxx"
#include "SocketAddress.hxx" // IWYU pragma: export
#include "Features.hxx"
#include "util/Compiler.h"

View File

@@ -36,9 +36,9 @@
#include <cstddef>
#ifdef _WIN32
#include <winsock2.h>
#include <winsock2.h> // IWYU pragma: export
#else
#include <sys/socket.h>
#include <sys/socket.h> // IWYU pragma: export
#endif
template<typename T> struct ConstBuffer;

View File

@@ -42,6 +42,7 @@
#include <netinet/tcp.h>
#endif
#include <cassert>
#include <cerrno>
#include <string.h>