summaryrefslogtreecommitdiff
path: root/src/sigs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sigs.c')
-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>