From d703adbdc1d70f30695c166ca29e9bb50266b036 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Sun, 3 Feb 2013 01:28:42 +0200 Subject: [PATCH] Add a few more headers required by getaddrinfo(3). Follow-up to cbb7f57; the code built on Linux despite the lack of required includes most likely because netdb.h ends up indirectly including sys/types.h and sys/socket.h. --- client_machine.cpp | 2 ++ tests/test_client_machine.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/client_machine.cpp b/client_machine.cpp index c7821b4629..6c12a2b8cd 100644 --- a/client_machine.cpp +++ b/client_machine.cpp @@ -28,6 +28,8 @@ along with this program. If not, see . #include // system #include +#include +#include #include namespace KWin { diff --git a/tests/test_client_machine.cpp b/tests/test_client_machine.cpp index 1129c91b39..4f7125e21f 100644 --- a/tests/test_client_machine.cpp +++ b/tests/test_client_machine.cpp @@ -28,6 +28,8 @@ along with this program. If not, see . #include // system #include +#include +#include #include namespace KWin {