Subject: | Compilation failure on freebsd (SIGWINCH) (0.56) |
On a FreeBSD 9.2 system compilation fails:
src/term.c: In function 'tickit_term_observe_sigwinch':
src/term.c:309: error: 'SIGWINCH' undeclared (first use in this function)
src/term.c:309: error: (Each undeclared identifier is reported only once
src/term.c:309: error: for each function it appears in.)
error building src/term.o from 'src/term.c' at /usr/perl5.14.4/lib/site_perl/5.14.4/ExtUtils/CBuilder/Base.pm line 173.
It's possible to use the hack below for a successful compile:
diff --git a/src/term.c b/src/term.c
index 6131c2d..7a42b88 100644
--- a/src/term.c
+++ b/src/term.c
@@ -6,6 +6,7 @@
/* We need SIGWINCH */
#define _BSD_SOURCE
+#define __BSD_VISIBLE 1
#include "tickit.h"