diff options
author | QC <qball@gmpclient.org> | 2015-07-04 15:36:11 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2015-07-04 15:36:11 +0200 |
commit | d60f6701dedd412bc71559c753be8bee223f1fb4 (patch) | |
tree | a9ea8f3f323889bbd1dfdbd046df3f5f93f6616c | |
parent | dfcfd7b26cdf1e2f46350c6bcf8a3a7666a06683 (diff) |
Add patches from BSD (hopefully ok?)
-rw-r--r-- | source/helper.c | 1 | ||||
-rw-r--r-- | source/i3-support.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source/helper.c b/source/helper.c index bda83714..1845022c 100644 --- a/source/helper.c +++ b/source/helper.c @@ -35,6 +35,7 @@ #include <fcntl.h> #include <sys/types.h> #include <sys/file.h> +#include <sys/stat.h> #include "helper.h" #include "rofi.h" diff --git a/source/i3-support.c b/source/i3-support.c index 4bfe26a5..6e94f723 100644 --- a/source/i3-support.c +++ b/source/i3-support.c @@ -36,7 +36,17 @@ #include <X11/X.h> #include <X11/Xlib.h> #include <sys/socket.h> +/* Check linux or BSD */ +#if defined(__linux__) #include <linux/un.h> +#else +#if defined(__unix__) +#include <sys/param.h> +#if defined(BSD) +#include <sys/un.h> +#endif +#endif +#endif #include "rofi.h" #include "x11-helper.h" |