From: Paul Eggert Date: Sun, 30 Oct 2005 23:04:17 +0000 (+0000) Subject: (gl_FUNC_FPENDING): Correct check for SCO systems, X-Git-Tag: v6.0~1444 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3103c9009ba57195ee767984c350533472fa9b8c;p=thirdparty%2Fcoreutils.git (gl_FUNC_FPENDING): Correct check for SCO systems, where __ptr is null when no I/O is pending. --- diff --git a/m4/fpending.m4 b/m4/fpending.m4 index 87398b142b..f43aaa4195 100644 --- a/m4/fpending.m4 +++ b/m4/fpending.m4 @@ -1,4 +1,4 @@ -#serial 6 +#serial 7 # Copyright (C) 2000, 2001, 2004, 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -42,7 +42,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' \