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