aboutsummaryrefslogtreecommitdiffstats
path: root/src/system/SocketError.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-28 11:50:54 +0100
committerMax Kellermann <max@duempel.org>2013-11-28 11:50:54 +0100
commitf90abe9530ef1075bc9b60e0f08f405d2d86f799 (patch)
tree60f4052123e03cd326ec64f4b6cd711784d651b2 /src/system/SocketError.hxx
parent46bab7e4b921b79924643bacd08dcd3d1404ceb6 (diff)
downloadmpd-f90abe9530ef1075bc9b60e0f08f405d2d86f799.tar.gz
mpd-f90abe9530ef1075bc9b60e0f08f405d2d86f799.tar.xz
mpd-f90abe9530ef1075bc9b60e0f08f405d2d86f799.zip
include cleanup using iwyu
Diffstat (limited to '')
-rw-r--r--src/system/SocketError.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/system/SocketError.hxx b/src/system/SocketError.hxx
index 22fbd2441..28e1bace0 100644
--- a/src/system/SocketError.hxx
+++ b/src/system/SocketError.hxx
@@ -21,7 +21,7 @@
#define MPD_SOCKET_ERROR_HXX
#include "Compiler.h"
-#include "util/Error.hxx"
+#include "util/Error.hxx" // IWYU pragma: export
#ifdef WIN32
#include <winsock2.h>
@@ -31,11 +31,13 @@ typedef DWORD socket_error_t;
typedef int socket_error_t;
#endif
+class Domain;
+
/**
* A #Domain for #Error for socket I/O errors. The code is an errno
* value (or WSAGetLastError() on Windows).
*/
-extern const class Domain socket_domain;
+extern const Domain socket_domain;
gcc_pure
static inline socket_error_t