aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorNils Schimmelmann <nschimme@gmail.com>2019-05-20 20:54:43 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2019-05-21 20:54:23 (GMT)
commitea6a8e09c6778074c88c410ebf40967f66fb4328 (patch)
tree36eed756e9692bfa7b3335e367952e433ed0527a /utils.c
parenta4c1978fc3e848702be152200528ee2173a8d157 (diff)
downloadpowwow-ea6a8e09c6778074c88c410ebf40967f66fb4328.zip
powwow-ea6a8e09c6778074c88c410ebf40967f66fb4328.tar.gz
powwow-ea6a8e09c6778074c88c410ebf40967f66fb4328.tar.bz2
Fix use of undeclared identifier 'SIGWINCH' on Mac
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 2211a8c..f6582ef 100644
--- a/utils.c
+++ b/utils.c
@@ -10,6 +10,15 @@
*
*/
+#ifdef BSD_LIKE
+/* Needed for SIGWINCH on OpenBSD. */
+# define _BSD_SOURCE
+/* Needed for SIGWINCH on FreeBSD. */
+# define __BSD_VISIBLE
+/* Needed for SIGWINCH on Darwin. */
+# define _DARWIN_C_SOURCE 1
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>