*** empty log message ***
[pspp] / m4 / fpending.m4
index 0a7b7de1dc93190a1ec006af28f04f268ed670db..b512f5d0bd1fbea49e8062ebb2ffa7395fa0b3be 100644 (file)
@@ -4,6 +4,10 @@ dnl From Jim Meyering
 dnl Using code from emacs, based on suggestions from Paul Eggert
 dnl and Ulrich Drepper.
 
+dnl Find out how to determine the number of pending output bytes on a stream.
+dnl Solaris provides __fpending.  On other systems, we have to grub around
+dnl in the FILE struct.
+
 AC_DEFUN(jm_FUNC_FPENDING,
 [
   AC_CHECK_HEADERS(stdio_ext.h)
@@ -17,7 +21,7 @@ AC_DEFUN(jm_FUNC_FPENDING,
        for ac_expr in                                          \
                                                                \
            '# glibc2'                                          \
-           'fp->_IO_write_ptr - fp->_IO_write_x_base'          \
+           'fp->_IO_write_ptr - fp->_IO_write_base'            \
                                                                \
            '# traditional Unix'                                \
            'fp->_ptr - fp->_base'                              \