summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel <jacknagel@gmail.com>2013-11-09 20:23:26 -0600
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-08 13:01:01 +0200
commit82aa3e3f43b758fd0c22439288dc8d4e36515ae1 (patch)
treede0446df56015a35c02e836c12504cac85350c08
parent9dc36589ae69f2938469b854b21ba1738469798b (diff)
downloadcalcurse-82aa3e3f43b758fd0c22439288dc8d4e36515ae1.tar.gz
calcurse-82aa3e3f43b758fd0c22439288dc8d4e36515ae1.zip
Define _DARWIN_C_SOURCE to get SIGWINCH on OS X
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/sigs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sigs.c b/src/sigs.c
index e746a01..18abcba 100644
--- a/src/sigs.c
+++ b/src/sigs.c
@@ -44,6 +44,11 @@
#define __BSD_VISIBLE 1
#endif
+#ifndef _DARWIN_C_SOURCE
+/* Needed for SIGWINCH on Darwin. */
+#define _DARWIN_C_SOURCE 1
+#endif
+
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>