[Top][All Lists]

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

Zile build breaks in lib/btow.c on NetBSD 1.5

From: Hauke Fath
Subject: Zile build breaks in lib/btow.c on NetBSD 1.5
Date: Tue, 30 Mar 2010 13:29:03 +0100


trying to build Zile 2.3.15 on an older NetBSD release (1.5), I have run
into problems compiling lib/btow.c. The project maintainer pointed me in
the direction of gnulib.

The preprocessor magic in lib/wchar.h
misses #including <stdlib.h> for the definition of mbtowc() alike to the
BSD/OS case,

btowc.c: In function `btowc':
btowc.c:34: warning: implicit declaration of function `mbtowc'

and this NetBSD version's <wchar.h> does not #define WEOF.

btowc.c:37: `WEOF' undeclared (first use in this function)
btowc.c:37: (Each undeclared identifier is reported only once
btowc.c:37: for each function it appears in.)
btowc.c:38: warning: control reaches end of non-void function
*** Error code 1


The patch at


does two things:

(1) decouple the WEOF definition from wint_t availability
(2) include <stdlib.h> where NetBSD declares mbtowc()

Maybe both can/should be checked for by auto* magic?

Please let me know if you need any additional information.


     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email            Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-3281

reply via email to

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