]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Better to say which OS's have closefrom.
authorRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 14:30:07 +0000 (14:30 +0000)
committerRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 14:30:07 +0000 (14:30 +0000)
common.h

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