Fix hook for putc_unlocked() with glibc.

putc_unlocked() is a macro which expands to __overflow() in some cases.
This commit is contained in:
Simon Ruderich
2013-06-13 12:59:12 +02:00
parent d8be625da9
commit 7adfbfd2cf
5 changed files with 24 additions and 0 deletions

View File

@@ -47,6 +47,11 @@ AC_TYPE_SSIZE_T
AC_C_INLINE
AX_C___ATTRIBUTE__
AC_CHECK_MEMBER([struct _IO_FILE._fileno],
[AC_DEFINE([HAVE_STRUCT__IO_FILE__FILENO], 1,
[Define to 1 if `_fileno' is a member of `struct _IO_FILE'.])],
[],[[#include <libio.h>]])
AC_FUNC_FORK
AC_CHECK_FUNCS([memmove setenv],
[],[AC_MSG_ERROR([function is required])])