about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStevan Andjelkovic <stevan@student.chalmers.se>2011-01-16 22:00:45 +0000
committerStevan Andjelkovic <stevan@student.chalmers.se>2011-01-16 22:00:45 +0000
commitfcbe212face207de8c7e34c73d3da9e41e705d02 (patch)
tree4a5591cda18bbee734a7844a3f345451c54d192e
parent6b8371f3aad9747b3d88acb45857831f61720249 (diff)
downloadxombrero-fcbe212face207de8c7e34c73d3da9e41e705d02.tar.gz
Made it compile on FreeBSD, I think.
ok marco@
-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>