mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Compat for closefrom().
This commit is contained in:
10
compat.h
10
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 <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 *);
|
||||
|
Reference in New Issue
Block a user