Build rk_closefrom even if including in libc
This commit is contained in:

committed by
Nicolas Williams

parent
77a452f4fd
commit
73b42d3238
@@ -398,6 +398,8 @@ AC_BROKEN([ \
|
|||||||
writev \
|
writev \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
rk_LIBOBJ(closefrom)
|
||||||
|
|
||||||
AM_CONDITIONAL(have_fnmatch_h,
|
AM_CONDITIONAL(have_fnmatch_h,
|
||||||
test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
|
test "$ac_cv_header_fnmatch_h" = yes -a "$ac_cv_func_fnmatch" = yes)
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
#include "roken.h"
|
#include "roken.h"
|
||||||
|
|
||||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||||
closefrom(int fd)
|
rk_closefrom(int fd)
|
||||||
{
|
{
|
||||||
int num = getdtablesize();
|
int num = getdtablesize();
|
||||||
|
|
||||||
|
@@ -1236,9 +1236,9 @@ vis(char *, int, int, int);
|
|||||||
|
|
||||||
#if !defined(HAVE_CLOSEFROM)
|
#if !defined(HAVE_CLOSEFROM)
|
||||||
#define closefrom rk_closefrom
|
#define closefrom rk_closefrom
|
||||||
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
|
||||||
closefrom(int);
|
|
||||||
#endif
|
#endif
|
||||||
|
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
|
||||||
|
rk_closefrom(int);
|
||||||
|
|
||||||
#if !defined(HAVE_TIMEGM)
|
#if !defined(HAVE_TIMEGM)
|
||||||
#define timegm rk_timegm
|
#define timegm rk_timegm
|
||||||
|
Reference in New Issue
Block a user