* Emacs now supports a glibc based on libio (instead of stdio) on Hurd systems.
  Patch: hurd-libio-glibc.diff
  Author: Marcus Brinkmann <marcus@gnu.org>
  Date: Tue, 16 Apr 2002 18:55:03 -0400
  Added-by: Jerome Marant <jerome@debian.org>
  Status: has been incorporated upstream

diff -urNad /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h emacs/src/s/gnu.h
--- /home/jerome/pkg/emacs21/svn/emacs/src/s/gnu.h	2003-09-26 19:50:09.000000000 +0200
+++ emacs/src/s/gnu.h	2003-09-27 15:01:16.000000000 +0200
@@ -64,6 +64,15 @@
 #define WAIT_USE_INT
 #define HAVE_UNION_WAIT
 
+#ifdef emacs
+#include <stdio.h>  /* Get the definition of _IO_STDIO_H.  */
+#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
+/* new C libio names */
+#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
+  ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
+#endif
+#endif
+
 /* GNU needs its own crt0, and libc defines data_start.  */
 #define ORDINARY_LINK
 #define DATA_START ({ extern int data_start; (char *) &data_start; })
