From d60f6701dedd412bc71559c753be8bee223f1fb4 Mon Sep 17 00:00:00 2001 From: QC Date: Sat, 4 Jul 2015 15:36:11 +0200 Subject: [PATCH] Add patches from BSD (hopefully ok?) --- source/helper.c | 1 + source/i3-support.c | 10 ++++++++++ 2 files changed, 11 insertions(+) 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 #include #include +#include #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 #include #include +/* Check linux or BSD */ +#if defined(__linux__) #include +#else +#if defined(__unix__) +#include +#if defined(BSD) +#include +#endif +#endif +#endif #include "rofi.h" #include "x11-helper.h"