diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-10-27 20:21:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-10-27 20:21:01 +0000 |
commit | 2287ec7b3ec768f7cb20df12c911a7ccd2d2720b (patch) | |
tree | 82214f7f1a9c48c1ec928c854093ae5524ea244a /compat.h | |
parent | 8f842170239eea1b85821b314f9e5e8d12543c4a (diff) |
Compat for closefrom().
Diffstat (limited to 'compat.h')
-rw-r--r-- | compat.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: compat.h,v 1.26 2010-09-07 19:32:58 nicm Exp $ */ +/* $Id: compat.h,v 1.27 2010-10-27 20:21:00 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -163,6 +163,14 @@ typedef uint64_t u_int64_t; #define bzero(buf, len) memset(buf, 0, len); #endif +#ifndef HAVE_CLOSEFROM +/* closefrom.c */ +#define HAVE_FCNTL_H +#define HAVE_DIRENT_H +#define HAVE_SYSCONF +void closefrom(int); +#endif + #ifndef HAVE_STRCASESTR /* strcasestr.c */ char *strcasestr(const char *, const char *); |