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
This commit is contained in:
Jacob 2014-07-24 14:19:49 +10:00
parent c502754f9b
commit bcc69a9e3b
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@
*/
#define _XOPEN_SOURCE 500
#define _DARWIN_C_SOURCE 1
#include <ctype.h>
#include <stdio.h>
#include <stdint.h>