summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2012-05-02 09:34:39 +0200
committerKarel Zak2012-05-02 09:34:39 +0200
commit1f13d6fcd0a5b6d957645dd42480435288dabb1a (patch)
tree93098149fb36b375fd730250f1d8e2c902edc6f8 /include
parentfdisk: remove dummy function (diff)
parentbuild-sys: determine availability of __fpending() (diff)
downloadkernel-qcow2-util-linux-1f13d6fcd0a5b6d957645dd42480435288dabb1a.tar.gz
kernel-qcow2-util-linux-1f13d6fcd0a5b6d957645dd42480435288dabb1a.tar.xz
kernel-qcow2-util-linux-1f13d6fcd0a5b6d957645dd42480435288dabb1a.zip
Merge branch '2012wk17' of https://github.com/kerolasa/lelux-utiliteetit
* '2012wk17' of https://github.com/kerolasa/lelux-utiliteetit: build-sys: determine availability of __fpending()
Diffstat (limited to 'include')
-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)
{