Define _DARWIN_C_SOURCE to get SIGWINCH on OS X

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Jack Nagel 2013-11-09 20:23:26 -06:00 committed by Lukas Fleischer
parent 9dc36589ae
commit 82aa3e3f43

View File

@ -44,6 +44,11 @@
#define __BSD_VISIBLE 1 #define __BSD_VISIBLE 1
#endif #endif
#ifndef _DARWIN_C_SOURCE
/* Needed for SIGWINCH on Darwin. */
#define _DARWIN_C_SOURCE 1
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>