From 5e79d651caee6b7a81097ae432b829e3da952261 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Tue, 6 Dec 2016 23:10:58 +0100 Subject: all: Compile globally without _GNU_SOURCE, define _BSD_SOURCE or _GNU_SOURCE where needed --- src/cal.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cal.c') diff --git a/src/cal.c b/src/cal.c index 60a2de1..a90546f 100644 --- a/src/cal.c +++ b/src/cal.c @@ -20,6 +20,12 @@ /* This is simple CAL parser form Calvaria */ +#ifdef __linux__ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif +#endif + #include #include #include -- cgit v1.2.3