# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
-AC_REPLACE_FUNCS([fileno localtime_r putenv setenv sleep strdup strsignal unsetenv])
-AC_CHECK_DECLS([fileno, localtime_r, putenv, setenv, sleep, strdup, strsignal, unsetenv])
+AC_REPLACE_FUNCS([fileno localtime_r pipe putenv setenv sleep strdup strsignal unsetenv])
+AC_CHECK_DECLS([fileno, localtime_r, pipe, putenv, setenv, sleep, strdup, strsignal, unsetenv])
# Output files
AC_CONFIG_HEADERS([config.h])
struct tm *localtime_r (const time_t *clock, struct tm *result);
#endif /* !HAVE_DECL_LOCALTIME_R */
+#if !HAVE_DECL_PIPE
+int pipe (int *fildes);
+#endif /* !HAVE_DECL_PIPE */
+
#if !HAVE_DECL_PUTENV
-int putenv (const char *string CK_ATTRIBUTE_UNUSED);
+int putenv (const char *string);
#endif /* !HAVE_DECL_PUTENV */
#if !HAVE_DECL_SETENV