summaryrefslogtreecommitdiffstats
path: root/include/closestream.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/closestream.h')
-rw-r--r--include/closestream.h10
1 files changed, 10 insertions, 0 deletions
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 <stdio.h>
+#ifdef HAVE_STDIO_EXT_H
#include <stdio_ext.h>
+#endif
#include <unistd.h>
#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)
{