]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on OSX.
authorRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 10:32:16 +0000 (10:32 +0000)
committerRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 10:32:16 +0000 (10:32 +0000)
common.h

index 94a1cc0c379e4887402b840d0e4f766ee94c045a..b3dba05ab5f160063a0d1567d725c1f23509ac75 100644 (file)
--- 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