summaryrefslogtreecommitdiffstats
path: root/src/cal.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-12-06 23:10:58 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-12-06 23:10:58 +0100
commit5e79d651caee6b7a81097ae432b829e3da952261 (patch)
treeffaeb6d2a7b1618fb6fd78ab8541cc5284ba5373 /src/cal.c
parent676da477510cb1966a74273f89c8aa64654a1d49 (diff)
download0xFFFF-5e79d651caee6b7a81097ae432b829e3da952261.tar.bz2
all: Compile globally without _GNU_SOURCE, define _BSD_SOURCE or _GNU_SOURCE where needed
Diffstat (limited to 'src/cal.c')
-rw-r--r--src/cal.c6
1 files changed, 6 insertions, 0 deletions
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 <stdio.h>
#include <stdlib.h>
#include <stdint.h>