From d5deccb354f533e6ef0f0e60dff1ad33c1e8aeaa Mon Sep 17 00:00:00 2001
From: Erik Ekman <yarrick@kryo.se>
Date: Sun, 20 Sep 2009 09:09:18 +0000
Subject: [PATCH] Fix FreeBSD build error, remove more includes

---
 src/iodined.c | 3 ++-
 src/user.c    | 5 -----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/iodined.c b/src/iodined.c
index 5e8cd2c..0ff8e25 100644
--- a/src/iodined.c
+++ b/src/iodined.c
@@ -26,6 +26,8 @@
 #include <time.h>
 #include <zlib.h>
 
+#include "common.h"
+
 #ifdef WINDOWS32
 #include "windows.h"
 #include <winsock2.h>
@@ -45,7 +47,6 @@
 #include <syslog.h>
 #endif
 
-#include "common.h"
 #include "dns.h"
 #include "encoding.h"
 #include "base32.h"
diff --git a/src/user.c b/src/user.c
index 54fcd35..32b35c1 100644
--- a/src/user.c
+++ b/src/user.c
@@ -21,16 +21,11 @@
 #include <string.h>
 #include <signal.h>
 #include <unistd.h>
-#include <sys/types.h>
 #include <fcntl.h>
 
 #ifdef WINDOWS32
 #include <winsock2.h>
 #else
-#include <err.h>
-#include <arpa/inet.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
 #include <netdb.h>
 #endif