File: hurd-libio-glibc.diff

package info (click to toggle)
emacs21 21.4a%2B1-3etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 59,104 kB
  • ctags: 58,909
  • sloc: lisp: 493,229; ansic: 237,175; xml: 4,262; sh: 4,109; makefile: 2,479; perl: 1,069; cs: 776; asm: 254; csh: 9; sed: 4
file content (26 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
* 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; })