summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-21 14:30:07 +0000
committerRoy Marples <roy@marples.name>2008-07-21 14:30:07 +0000
commit61490808713ef584c0ed0779d3bebc2ab4980aae (patch)
tree14ab17eb1691fa632f58750f0aa0f92263c85c9f /common.h
parentf242783d9ed817923102dbce490a6cec1295d78f (diff)
downloaddhcpcd-61490808713ef584c0ed0779d3bebc2ab4980aae.tar.xz
Better to say which OS's have closefrom.
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common.h b/common.h
index b3dba05a..dcbbf649 100644
--- a/common.h
+++ b/common.h
@@ -63,10 +63,11 @@ size_t strlcpy(char *, const char *, size_t);
#endif
#ifndef HAVE_CLOSEFROM
-#define HAVE_CLOSEFROM 1
+# if defined(__NetBSD__) || defined(__OpenBSD__)
+# define HAVE_CLOSEFROM 1
+# endif
#endif
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)
-# undef HAVE_CLOSEFROM
+#ifndef HAVE_CLOSEFROM
int closefrom(int);
#endif