diff options
| author | Roy Marples <roy@marples.name> | 2008-07-21 14:30:07 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-07-21 14:30:07 +0000 |
| commit | 61490808713ef584c0ed0779d3bebc2ab4980aae (patch) | |
| tree | 14ab17eb1691fa632f58750f0aa0f92263c85c9f /common.h | |
| parent | f242783d9ed817923102dbce490a6cec1295d78f (diff) | |
| download | dhcpcd-61490808713ef584c0ed0779d3bebc2ab4980aae.tar.xz | |
Better to say which OS's have closefrom.
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
