fpending: fix regression on DragonFly BSD
[gnulib.git] / lib / fpending.h
index c6a493d..c12871d 100644 (file)
@@ -1,6 +1,7 @@
 /* Declare __fpending.
 
-   Copyright (C) 2000, 2003, 2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2003, 2005-2006, 2009-2013 Free Software Foundation,
+   Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
 #include <stddef.h>
 #include <stdio.h>
-
-#ifndef HAVE_DECL___FPENDING
-"this configure-time declaration test was not run"
+#if HAVE_STDIO_EXT_H
+# include <stdio_ext.h>
 #endif
 
-#if HAVE_DECL___FPENDING
-# if HAVE_STDIO_EXT_H
-#  include <stdio_ext.h>
-# endif
-#else
-size_t __fpending (FILE *);
+#if !HAVE_DECL_FPENDING
+size_t __fpending (FILE *) _GL_ATTRIBUTE_PURE;
 #endif