home · contact · privacy
Client: Handle SIGWINCH on OS X systems.
[plomrogue] / src / client / main.c
index 5f48fa2f85c4decd615037d1e90d222e789610e8..1821e57f9205007d596f286e794cb0eba1896892 100644 (file)
@@ -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() */