From a5fe9aa73633594b443e2a1a990cdf23addbb28b Mon Sep 17 00:00:00 2001 From: Greg V Date: Tue, 10 Oct 2017 01:23:43 +0300 Subject: Add FreeBSD compatibility --- backend/x11/backend.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'backend/x11') diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 1eb5a952..bcc2e970 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -1,4 +1,4 @@ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L #include #include #include @@ -8,7 +8,11 @@ #include #include #include +#ifdef __linux__ #include +#elif __FreeBSD__ +#include +#endif #include #include #include -- cgit v1.2.3