diff options
| author | Nils Schimmelmann <nschimme@gmail.com> | 2019-05-20 20:54:43 (GMT) |
|---|---|---|
| committer | Steve Slaven <bpk@hoopajoo.net> | 2019-05-21 20:54:23 (GMT) |
| commit | ea6a8e09c6778074c88c410ebf40967f66fb4328 (patch) | |
| tree | 36eed756e9692bfa7b3335e367952e433ed0527a | |
| parent | a4c1978fc3e848702be152200528ee2173a8d157 (diff) | |
| download | powwow-ea6a8e09c6778074c88c410ebf40967f66fb4328.zip powwow-ea6a8e09c6778074c88c410ebf40967f66fb4328.tar.gz powwow-ea6a8e09c6778074c88c410ebf40967f66fb4328.tar.bz2 | |
Fix use of undeclared identifier 'SIGWINCH' on Mac
| -rw-r--r-- | utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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> |
