X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ffpending.m4;h=edf7378002f2a76331b4baa40f633310f070b57c;hb=b0df6af4ba3f1b975ae8a39c959862f9f4c37820;hp=87398b142b4ba5e9ccccfd631ecac62be355c8de;hpb=62a39c7d945eb4160c206242b85c624fb2fb21fd;p=gnulib.git diff --git a/m4/fpending.m4 b/m4/fpending.m4 index 87398b142..edf737800 100644 --- a/m4/fpending.m4 +++ b/m4/fpending.m4 @@ -1,6 +1,6 @@ -#serial 6 +#serial 8 -# Copyright (C) 2000, 2001, 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -20,6 +20,7 @@ AC_DEFUN([gl_FUNC_FPENDING], AC_CHECK_HEADERS(stdio_ext.h) AC_REPLACE_FUNCS([__fpending]) fp_headers=' +# include # if HAVE_STDIO_EXT_H # include # endif @@ -42,7 +43,7 @@ AC_DEFUN([gl_FUNC_FPENDING], 'fp->_p - fp->_bf._base' \ \ '# SCO, Unixware' \ - 'fp->__ptr - fp->__base' \ + '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \ \ '# old glibc?' \ 'fp->__bufp - fp->__buffer' \