summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sigs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sigs.c b/src/sigs.c
index 4f5d982..4cc01bf 100644
--- a/src/sigs.c
+++ b/src/sigs.c
@@ -34,6 +34,16 @@
*
*/
+#ifndef _BSD_SOURCE
+/* Needed for SIGWINCH on OpenBSD. */
+#define _BSD_SOURCE
+#endif
+
+#ifndef __BSD_VISIBLE
+/* Needed for SIGWINCH on FreeBSD. */
+#define __BSD_VISIBLE 1
+#endif
+
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>