From bcc69a9e3b33d9319d0aac6af4b0a8a6e9cfc7ca Mon Sep 17 00:00:00 2001 From: Jacob Date: Thu, 24 Jul 2014 14:19:49 +1000 Subject: [PATCH] Add _DARWIN_C_SOURCE to allow compiling on OSX This allows OSX to get declarations for readlink(), setegid(), seteuid() etc when compiling Allows successful compile on OSX 10.9.4 Didn't break the build on Linux (tested on Ubuntu Server 12.04 LTS & Centos 6.5 --- src/nyancat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nyancat.c b/src/nyancat.c index 5c6e59c..311627f 100644 --- a/src/nyancat.c +++ b/src/nyancat.c @@ -50,6 +50,7 @@ */ #define _XOPEN_SOURCE 500 +#define _DARWIN_C_SOURCE 1 #include #include #include