From 3ddc7a53538bf650e716e62f2206524d9fc9ecd7 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@musicpd.org>
Date: Tue, 30 Oct 2018 20:17:24 +0100
Subject: [PATCH] event/ServerSocket: include cleanup

---
 src/event/ServerSocket.cxx | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx
index dbec53d17..25e1e81ba 100644
--- a/src/event/ServerSocket.cxx
+++ b/src/event/ServerSocket.cxx
@@ -32,25 +32,17 @@
 #include "net/ToString.hxx"
 #include "event/SocketMonitor.hxx"
 #include "fs/AllocatedPath.hxx"
-#include "fs/FileSystem.hxx"
 #include "util/RuntimeError.hxx"
 #include "util/Domain.hxx"
-#include "util/ScopeExit.hxx"
 #include "Log.hxx"
 
 #include <string>
 #include <algorithm>
 
-#include <string.h>
-#include <unistd.h>
 #include <assert.h>
 
-#ifdef _WIN32
-#include <ws2tcpip.h>
-#include <winsock.h>
-#else
-#include <sys/socket.h>
-#include <netdb.h>
+#ifdef HAVE_UN
+#include <sys/stat.h>
 #endif
 
 class ServerSocket::OneServerSocket final : private SocketMonitor {