From: Roy Marples Date: Mon, 21 Jul 2008 14:30:07 +0000 (+0000) Subject: Better to say which OS's have closefrom. X-Git-Tag: v4.0.2~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61490808713ef584c0ed0779d3bebc2ab4980aae;p=thirdparty%2Fdhcpcd.git Better to say which OS's have closefrom. --- 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