From: Christian Heller Date: Tue, 15 Apr 2014 01:53:12 +0000 (+0200) Subject: Client: Handle SIGWINCH on OS X systems. X-Git-Tag: tce~763 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/feed.xml?a=commitdiff_plain;h=ef04cd096599eba243b40c5d40da38398adc7785;p=plomrogue Client: Handle SIGWINCH on OS X systems. --- diff --git a/TODO b/TODO index 42187cd..640bbf9 100644 --- a/TODO +++ b/TODO @@ -23,5 +23,3 @@ CLIENT: - enable toggling of window borders - make log scrollable - -- handle systems without SIGWINCH diff --git a/src/client/main.c b/src/client/main.c index 5f48fa2..1821e57 100644 --- a/src/client/main.c +++ b/src/client/main.c @@ -1,8 +1,9 @@ /* main.c */ -#define _POSIX_C_SOURCE 1 /* struct sigaction, sigaction() */ +#define _POSIX_C_SOURCE 1 /* sigaction, sigaction() */ +#define _DARWIN_C_SOURCE 1 /* SIGWINCH on OS X */ #include /* keypad() */ -#include /* struct sigaction, sigaction() */ +#include /* SIGWINCH, sigaction, sigaction() */ #include /* NULL */ #include /* exit() */ #include /* memset() */