Re: BEOS builds


Subject: Re: BEOS builds
From: Thomas Fletcher (thomasf@qnx.com)
Date: Wed Jun 14 2000 - 06:45:50 CDT


On Tue, 13 Jun 2000, Dom Lachowicz wrote:

> Hi guys,
>
> I have an idea as to how to fix the BeOS PPC build to get things to compile
> but no way to test things. Maybe someone could help me out.
>
> The problem is a redefinition of getopt()'s function prototype in wv/getopt.h
> On UNIX builds, getopt is usually defined in stdio.h and stdlib.h. Its
> prototype is either:
> 1) int getopt(int, char *const *, const char *); //gnu C
> 2) int getopt(); //non-gnu C
>
> In getopt.h in the wv tree is declaring 'int getopt()' while (i believe) one
> of stdlib.h||stdio.h is declaring the other signature.
>
> The possible solutions:
> 1) try not compiling in wv's getopt if you're using BeOS
> 2) in wv/getopt.[ch] try adding an #ifdef or two to the order of
> #if defined(__BEOS__) && defined(__PPC__)
> int getopt(int, char *const *, const char *);
> #endif
>
> I prefer solution #2 but don't have a box to test on && don't know what symbols
> BeOS defines(__BEOS__ is just a guess).

I would also go for solution #2 and __BEOS__ is the
macro to use. The metrowerks compiler is very persnickity
about things like this.

Thomas
-------------------------------------------------------------
Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf



This archive was generated by hypermail 2b25 : Wed Jun 14 2000 - 06:45:32 CDT