From 2287ec7b3ec768f7cb20df12c911a7ccd2d2720b Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 27 Oct 2010 20:21:01 +0000 Subject: Compat for closefrom(). --- compat.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'compat.h') diff --git a/compat.h b/compat.h index 90758165..83244541 100644 --- a/compat.h +++ b/compat.h @@ -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 @@ -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 *); -- cgit