* Doesn't build on GNU/Hurd with glibc based on libio
@ 2002-04-29 20:08 Marcus Brinkmann
2002-04-30 5:11 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Marcus Brinkmann @ 2002-04-29 20:08 UTC (permalink / raw)
Hi,
the GNU/Hurd platform is switching to a libio based glibc rather than
stdio right now. So we need the following patch to make it work
(copied and shortened for the relevant cases only from src/s/gnu-linux.h):
(Mmh. Maybe it makes sense to collect all configuration specific to the
GNU C Library that is shared by all platforms supported by the GNU C
Library into a src/s/glibc.h file.)
--- src/s/gnu.h~ Wed Apr 19 07:21:37 2000
+++ src/s/gnu.h Mon Apr 29 16:04:44 2002
@@ -78,3 +78,12 @@
#endif
#define NARROWPROTO 1
+
+#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 /* !_IO_STDIO_H */
+#endif /* emacs */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Doesn't build on GNU/Hurd with glibc based on libio
2002-04-29 20:08 Doesn't build on GNU/Hurd with glibc based on libio Marcus Brinkmann
@ 2002-04-30 5:11 ` Eli Zaretskii
2002-04-30 12:37 ` Marcus Brinkmann
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2002-04-30 5:11 UTC (permalink / raw)
Cc: bug-gnu-emacs
On Mon, 29 Apr 2002, Marcus Brinkmann wrote:
> the GNU/Hurd platform is switching to a libio based glibc rather than
> stdio right now. So we need the following patch to make it work
> (copied and shortened for the relevant cases only from src/s/gnu-linux.h):
Thanks.
Just to be sure: will this patch work for all versions of GNU/Hurd,
including the older ones, at least as well as with the current version
of the s/gnu.h header?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Doesn't build on GNU/Hurd with glibc based on libio
2002-04-30 5:11 ` Eli Zaretskii
@ 2002-04-30 12:37 ` Marcus Brinkmann
0 siblings, 0 replies; 3+ messages in thread
From: Marcus Brinkmann @ 2002-04-30 12:37 UTC (permalink / raw)
Cc: bug-gnu-emacs
On Tue, Apr 30, 2002 at 08:11:01AM +0300, Eli Zaretskii wrote:
>
> On Mon, 29 Apr 2002, Marcus Brinkmann wrote:
>
> > the GNU/Hurd platform is switching to a libio based glibc rather than
> > stdio right now. So we need the following patch to make it work
> > (copied and shortened for the relevant cases only from src/s/gnu-linux.h):
>
> Thanks.
>
> Just to be sure: will this patch work for all versions of GNU/Hurd,
> including the older ones, at least as well as with the current version
> of the s/gnu.h header?
Yes, if you compile it with the old version, neither _IO_STDIO_H nor
_STDIO_USES_IOSTREAM will be defined, and the code will compile and run, too.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-04-30 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-29 20:08 Doesn't build on GNU/Hurd with glibc based on libio Marcus Brinkmann
2002-04-30 5:11 ` Eli Zaretskii
2002-04-30 12:37 ` Marcus Brinkmann
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).