summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-26 22:10:07 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-26 22:10:07 +0100
commite1bffdb52daa50468d2b730a51d1717cafb70705 (patch)
tree1e5027d2b8f0cd882a1aa8c0cfb8337811b82b1e
parentf0ec3247bc1b9cd857d3bb00cf8f85d965342f23 (diff)
downloadcalcurse-e1bffdb52daa50468d2b730a51d1717cafb70705.zip
sigs.c: Suppress compiler warning
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/sigs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sigs.c b/src/sigs.c
index c9fde84..6a006c3 100644
--- a/src/sigs.c
+++ b/src/sigs.c
@@ -37,6 +37,10 @@
#ifndef _BSD_SOURCE
/* Needed for SIGWINCH on OpenBSD. */
#define _BSD_SOURCE
+/* Silence compiler warning about _BSD_SOURCE being deprecated. */
+#ifndef _DEFAULT_SOURCE
+#define _DEFAULT_SOURCE
+#endif
#endif
#ifndef __BSD_VISIBLE