From: Roy Marples Date: Mon, 21 Jul 2008 10:32:16 +0000 (+0000) Subject: Fix compile on OSX. X-Git-Tag: v4.0.2~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66a74fc3510732b5d46cf83b30248b9bcf6ef405;p=thirdparty%2Fdhcpcd.git Fix compile on OSX. --- diff --git a/common.h b/common.h index 94a1cc0c..b3dba05a 100644 --- a/common.h +++ b/common.h @@ -65,7 +65,7 @@ size_t strlcpy(char *, const char *, size_t); #ifndef HAVE_CLOSEFROM #define HAVE_CLOSEFROM 1 #endif -#if defined(__linux__) || defined(__FreeBSD__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) # undef HAVE_CLOSEFROM int closefrom(int); #endif