include cleanup
This commit is contained in:
@@ -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
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -42,6 +42,7 @@
|
||||
#include <netinet/tcp.h>
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
|
||||
#include <string.h>
|
||||
|
Reference in New Issue
Block a user