about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--xxxterm.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/xxxterm.c b/xxxterm.c
index bdcb95c..2bcebdb 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -41,13 +41,19 @@
 #include <dlfcn.h>
 #include <errno.h>
 
+#include <sys/types.h>
 #ifdef __linux__
-#include "linux/tree.h"
+        #include "linux/tree.h"
+        #include "linux/util.h"
 #else
-#include <sys/tree.h>
+        #ifdef __FreeBSD__
+                #include <libutil.h>
+        #else
+                #include <util.h>
+        #endif
+        #include <sys/tree.h>
 #endif
 #include <sys/queue.h>
-#include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <sys/un.h>