# Check functions
check_function_exists(ctime_r HAVE_CTIME_R)
check_function_exists(fcntl HAVE_FCNTL)
-check_function_exists(fileno HAVE_DECL_FILENO)
check_function_exists(fork HAVE_FORK)
check_function_exists(fstat HAVE_FSTAT)
check_function_exists(getenv HAVE_GETENV)
check_function_exists(wmemcmp HAVE_WMEMCMP)
check_function_exists(wmemcpy HAVE_WMEMCPY)
check_function_exists(_ctime64_s HAVE__CTIME64_S)
-check_function_exists(_fileno HAVE__FILENO)
check_function_exists(_fseeki64 HAVE__FSEEKI64)
check_function_exists(_get_timezone HAVE__GET_TIMEZONE)
check_function_exists(_getpid HAVE__GETPID)
# replaced with Check's replacement of these functions.
HW_LIBRT_TIMERS
-AC_REPLACE_FUNCS([alarm clock_gettime gettimeofday fileno localtime_r putenv setenv sleep strdup strsignal unsetenv])
-AC_CHECK_DECLS([alarm, clock_gettime, gettimeofday, fileno, localtime_r, putenv, setenv, sleep, strdup, strsignal, unsetenv])
+AC_REPLACE_FUNCS([alarm clock_gettime gettimeofday localtime_r putenv setenv sleep strdup strsignal unsetenv])
+AC_CHECK_DECLS([alarm, clock_gettime, gettimeofday, localtime_r, putenv, setenv, sleep, strdup, strsignal, unsetenv])
AC_CHECK_FUNCS([setitimer])
set(SOURCES ${SOURCES} timer_settime.c)
endif(NOT HAVE_LIBRT)
-if(NOT HAVE_DECL_FILENO AND NOT HAVE__FILENO)
- set(SOURCES ${SOURCES} fileno.c)
-endif(NOT HAVE_DECL_FILENO AND NOT HAVE__FILENO)
-
if(NOT HAVE_GETTIMEOFDAY)
set(SOURCES ${SOURCES} gettimeofday.c)
endif(NOT HAVE_GETTIMEOFDAY)
+++ /dev/null
-#include "libcompat.h"
-
-int fileno(FILE *stream CK_ATTRIBUTE_UNUSED)
-{
- assert (0);
- return 0;
-}
void *rpl_realloc (void *p, size_t n);
#endif /* !HAVE_REALLOC */
-/* functions that may be undeclared */
-#if !HAVE_DECL_FILENO && !HAVE__FILENO
-int fileno (FILE *stream);
-#elif !HAVE_FILENO && HAVE__FILENO
-#define fileno _fileno;
-#endif /* !HAVE_DECL_FILENO && !HAVE__FILENO */
-
#if !HAVE_GETPID && HAVE__GETPID
#define getpid _getpid;
#endif /* !HAVE_GETPID && HAVE__GETPID */