summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index decb0b6..20f7170 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -26,6 +26,7 @@ THE SOFTWARE.
#ifndef __FreeBSD__
#define _POSIX_C_SOURCE 1 /* fileno() */
#define _BSD_SOURCE /* strdup() */
+#define _DARWIN_C_SOURCE /* strdup() on OS X */
#endif
#include <stdio.h>