Build rk_closefrom even if including in libc

This commit is contained in:
Brian May
2022-08-26 09:15:13 +10:00
committed by Nicolas Williams
parent 77a452f4fd
commit 73b42d3238
3 changed files with 5 additions and 3 deletions

View File

@@ -398,6 +398,8 @@ AC_BROKEN([ \
writev \
])
rk_LIBOBJ(closefrom)
AM_CONDITIONAL(have_fnmatch_h,
test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)

View File

@@ -43,7 +43,7 @@
#include "roken.h"
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
closefrom(int fd)
rk_closefrom(int fd)
{
int num = getdtablesize();

View File

@@ -1236,9 +1236,9 @@ vis(char *, int, int, int);
#if !defined(HAVE_CLOSEFROM)
#define closefrom rk_closefrom
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
closefrom(int);
#endif
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
rk_closefrom(int);
#if !defined(HAVE_TIMEGM)
#define timegm rk_timegm