bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch for bash-3.2 to compile under Debian GNU/Linux 4.0 with DietLi


From: Chet Ramey
Subject: Re: patch for bash-3.2 to compile under Debian GNU/Linux 4.0 with DietLibc
Date: Fri, 05 Sep 2008 23:03:37 -0400
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

Antonio Gallo wrote:
Here you are:

mercurius:/usr/src/BadPenguin# cat bash-3.2-dietlibc.unified-patch
--- build/bash-3.2/lib/sh/winsize.c.orig 2006-07-28 05:57:45.000000000 +0200
+++ build/bash-3.2/lib/sh/winsize.c     2008-09-03 14:56:46.000000000 +0200
@@ -43,6 +43,11 @@

#include <stdio.h>

+/* Antonio Gallo <agx>, Dietlibc under Debian GNU/Linux declare winsize inside termios.h */
+#if !defined(winsize)
+#include <termios.h>
+#endif
+
/* Return the fd from which we are actually getting input. */
#define input_tty() (shell_tty != -1) ? shell_tty : fileno (stderr)

`winsize' is not a define anywhere, so this patch isn't really a good
solution.  A better one would be finding out why the BASH_STRUCT_WINSIZE
macro in aclocal.m4 isn't able to correctly deduce the location of the
`struct winsize' definition.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]