[Top][All Lists]

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

[Bug-zile] Zile build breaks in lib/btow.c on NetBSD 1.5

From: Hauke Fath
Subject: [Bug-zile] Zile build breaks in lib/btow.c on NetBSD 1.5
Date: Mon, 29 Mar 2010 18:08:56 +0200
User-agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv: Gecko/20100316 Shredder/3.0.2


trying to build Zile 2.3.15 on an older NetBSD release (1.5), I have run into problems compiling lib/btow.c. 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 WEOF can be hacked in easily, but I am not sure how to tweak the aforementioned preprocessor magic to make sure we have the mbtowc() prototype. 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]