summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-05-19 18:42:37 +0000
committerRichard M. Stallman <rms@gnu.org>1994-05-19 18:42:37 +0000
commit3883a901718c3d2ad796f0603bba27b54bffe2f0 (patch)
tree01c87664a60563a093033d8ba5ec79873105c3a6 /src/dispnew.c
parent1ad2277b682330d190c905a744f674bf89f8b9d8 (diff)
downloademacs-3883a901718c3d2ad796f0603bba27b54bffe2f0.tar.gz
(PENDING_OUTPUT_COUNT): If __GNU_LIBRARY__,
use GNU_LIBRARY_PENDING_OUTPUT_COUNT if defined. Include errno.h.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 8001c545029..bc521fb26e1 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -45,6 +45,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "xterm.h"
#endif /* HAVE_X_WINDOWS */
+#include <errno.h>
+
#define max(a, b) ((a) > (b) ? (a) : (b))
#define min(a, b) ((a) < (b) ? (a) : (b))
@@ -55,9 +57,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* The s- file might have overridden the definition with one that works for
the system's C library. But we are using the GNU C library, so this is
the right definition for every system. */
+#ifdef GNU_LIBRARY_PENDING_OUTPUT_COUNT
+#define PENDING_OUTPUT_COUNT GNU_LIBRARY_PENDING_OUTPUT_COUNT
+#else
#undef PENDING_OUTPUT_COUNT
#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)
-#else
+#endif
+#else /* not __GNU_LIBRARY__ */
#ifndef PENDING_OUTPUT_COUNT
#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)
#endif