Re: Announcing bglibs version 1.024

Amitai Schlair <[email protected]> Fri, 15 Jul 2005 18:26:50 -0400
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
On Jul 12, 2005, at 6:43 AM, Amitai Schlair wrote:

> On Jul 11, 2005, at 1:00 AM, Bruce Guenter wrote:
>
>> - Build the sources by running "make"
>
> On NetBSD 2.0, I get the following error:
>
> ./compile bg-installer.c
> bg-installer.c:156: error: conflicting types for `setmode'
> /usr/include/unistd.h:337: error: previous declaration of `setmode'
>
> That previous declaration is:
>
> void    *setmode __P((const char *));
>
> 1.019 was the last version I looked at, and it built fine. (Sorry I 
> haven't been keeping up.) What's the best workaround?

My workaround (this should help the OpenBSD user as well): rename all 
occurrences of "setmode" in bg-installer.c to "bgsetmode".