From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marcus Brinkmann Newsgroups: gmane.emacs.bugs Subject: Doesn't build on GNU/Hurd with glibc based on libio Date: Mon, 29 Apr 2002 16:08:43 -0400 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <20020429200843.GG10812@gnu.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020111012 15956 127.0.0.1 (29 Apr 2002 20:10:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Apr 2002 20:10:12 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 172HTP-000498-00 for ; Mon, 29 Apr 2002 22:10:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 172HTF-0000z2-00; Mon, 29 Apr 2002 16:10:01 -0400 Original-Received: from marcus by fencepost.gnu.org with local (Exim 3.34 #1 (Debian)) id 172HRz-0000tZ-00 for ; Mon, 29 Apr 2002 16:08:43 -0400 Original-To: bug-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.25i Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1035 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1035 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 /* 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 */