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 --- rootston/cursor.c | 7 +++++-- rootston/output.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'rootston') diff --git a/rootston/cursor.c b/rootston/cursor.c index eeb657ad..8790934c 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -1,10 +1,13 @@ -#define _XOPEN_SOURCE 500 +#define _XOPEN_SOURCE 700 #include #include #include #include -// TODO: BSD et al +#ifdef __linux__ #include +#elif __FreeBSD__ +#include +#endif #include #include #include diff --git a/rootston/output.c b/rootston/output.c index 6c7fbf51..4ce10ea2 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -1,4 +1,4 @@ -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200809L #include #include #include -- cgit v1.2.3