summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-21 10:32:16 +0000
committerRoy Marples <roy@marples.name>2008-07-21 10:32:16 +0000
commit66a74fc3510732b5d46cf83b30248b9bcf6ef405 (patch)
treecd3ea6ba61eaa23a1efa2607921b8b0200ecc852 /common.h
parent242f97be36e14e210af7136e6e9f43bbe397adef (diff)
downloaddhcpcd-66a74fc3510732b5d46cf83b30248b9bcf6ef405.tar.xz
Fix compile on OSX.
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
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