From 78288764e48b570659e951a6c84a49e625733bc1 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 23 Apr 2012 14:26:23 +0200 Subject: build-sys: determine availability of __fpending() Needed to for making Cygwin more possible. Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/5656 Reported-by: Bernhard Voelker Signed-off-by: Sami Kerola --- include/closestream.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/closestream.h') diff --git a/include/closestream.h b/include/closestream.h index fb507eab8..d61b83b5e 100644 --- a/include/closestream.h +++ b/include/closestream.h @@ -2,12 +2,22 @@ #define UTIL_LINUX_CLOSESTREAM_H #include +#ifdef HAVE_STDIO_EXT_H #include +#endif #include #include "c.h" #include "nls.h" +#ifndef HAVE___FPENDING +static inline int +__fpending(FILE *stream __attribute__((__unused__))) +{ + return 0; +} +#endif + static inline int close_stream(FILE * stream) { -- cgit v1.2.3-55-g7522