diff options
author | Max Kellermann <max@musicpd.org> | 2020-07-23 16:14:23 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-07-23 16:26:18 +0200 |
commit | 155fc8fa5a3abf1d802efb36cd4b4fa2b3f3d69a (patch) | |
tree | 9d20802d8ec327785876224fadf2ef852e365141 /src/net | |
parent | 7daf80a0c069acbdfacc46ac1049a59fdccf85ae (diff) |
include cleanup
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/AddressInfo.hxx | 7 | ||||
-rw-r--r-- | src/net/AllocatedSocketAddress.hxx | 2 | ||||
-rw-r--r-- | src/net/SocketAddress.hxx | 4 | ||||
-rw-r--r-- | src/net/SocketDescriptor.cxx | 1 |
4 files changed, 8 insertions, 6 deletions
diff --git a/src/net/AddressInfo.hxx b/src/net/AddressInfo.hxx index 1e6350b75..578c53a07 100644 --- a/src/net/AddressInfo.hxx +++ b/src/net/AddressInfo.hxx @@ -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 diff --git a/src/net/AllocatedSocketAddress.hxx b/src/net/AllocatedSocketAddress.hxx index 002281685..1301a06d1 100644 --- a/src/net/AllocatedSocketAddress.hxx +++ b/src/net/AllocatedSocketAddress.hxx @@ -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" diff --git a/src/net/SocketAddress.hxx b/src/net/SocketAddress.hxx index c1adc54f3..cd9a23156 100644 --- a/src/net/SocketAddress.hxx +++ b/src/net/SocketAddress.hxx @@ -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; diff --git a/src/net/SocketDescriptor.cxx b/src/net/SocketDescriptor.cxx index 827ace4b8..aa09d992a 100644 --- a/src/net/SocketDescriptor.cxx +++ b/src/net/SocketDescriptor.cxx @@ -42,6 +42,7 @@ #include <netinet/tcp.h> #endif +#include <cassert> #include <cerrno> #include <string.h> |