From ef04cd096599eba243b40c5d40da38398adc7785 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 15 Apr 2014 03:53:12 +0200
Subject: [PATCH] Client: Handle SIGWINCH on OS X systems.

---
 TODO              | 2 --
 src/client/main.c | 5 +++--
 2 files changed, 3 insertions(+), 4 deletions(-)

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 <ncurses.h> /* keypad() */
-#include <signal.h> /* struct sigaction, sigaction() */
+#include <signal.h> /* SIGWINCH, sigaction, sigaction() */
 #include <stddef.h> /* NULL */
 #include <stdlib.h> /* exit() */
 #include <string.h> /* memset() */
-- 
2.30.2