From 42f5a853e2196bf935eb4130b8489548941819e6 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Mon, 6 Dec 2021 09:42:42 +0100
Subject: [PATCH] Fix includes (as reported by IWYU 0.17)

---
 apps/EchoServer.cpp        | 1 -
 emper/c_emper.cpp          | 1 -
 emper/io/Stats.hpp         | 1 -
 tests/fixtures/network.cpp | 1 -
 tests/io/TimeoutTest.cpp   | 1 -
 5 files changed, 5 deletions(-)

diff --git a/apps/EchoServer.cpp b/apps/EchoServer.cpp
index 7b92494a..0aa3eb4b 100644
--- a/apps/EchoServer.cpp
+++ b/apps/EchoServer.cpp
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: LGPL-3.0-or-later
 // Copyright © 2020-2021 Florian Fischer
 #include <sys/socket.h>
-#include <sys/types.h>
 
 #include <atomic>
 #include <cerrno>
diff --git a/emper/c_emper.cpp b/emper/c_emper.cpp
index 34b57623..bb9da662 100644
--- a/emper/c_emper.cpp
+++ b/emper/c_emper.cpp
@@ -14,7 +14,6 @@
 #include <sys/types.h>	 // for off_t
 
 #include <cstdarg>
-#include <cstddef>	// for size_t
 
 #include "io.hpp"	 // for emper::io::emper_*
 #endif
diff --git a/emper/io/Stats.hpp b/emper/io/Stats.hpp
index eb181455..ee8ac222 100644
--- a/emper/io/Stats.hpp
+++ b/emper/io/Stats.hpp
@@ -5,7 +5,6 @@
 #include <sys/types.h>								// for ssize_t
 
 #include <boost/circular_buffer.hpp>
-#include <boost/core/pointer_traits.hpp>
 #include <chrono>		 // for nanoseconds
 #include <cstddef>	 // for size_t
 #include <cstdint>	 // for uint64_t, int32_t, uint32_t
diff --git a/tests/fixtures/network.cpp b/tests/fixtures/network.cpp
index c21cf7c3..156a2810 100644
--- a/tests/fixtures/network.cpp
+++ b/tests/fixtures/network.cpp
@@ -4,7 +4,6 @@
 
 #include <netdb.h>
 #include <sys/socket.h>
-#include <sys/types.h>
 
 #include <cassert>
 #include <cstdlib>
diff --git a/tests/io/TimeoutTest.cpp b/tests/io/TimeoutTest.cpp
index dfd7283e..a46813c5 100644
--- a/tests/io/TimeoutTest.cpp
+++ b/tests/io/TimeoutTest.cpp
@@ -3,7 +3,6 @@
 #include <netinet/in.h>
 #include <sys/eventfd.h>
 #include <sys/socket.h>
-#include <sys/types.h>
 
 #include <cerrno>
 #include <cstdint>
-- 
GitLab