*BSD News Article 22028


Return to BSD News archive

Newsgroups: comp.os.386bsd.apps
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!decwrl!uunet!math.fu-berlin.de!news.cvt.stuba.sk!valo
From: valo@cvt.stuba.sk (Valo Roman)
Subject: Re: fvwm
Sender: news@cvt.stuba.sk (NetNews administrator)
Message-ID: <CEGx4C.4Bo@cvt.stuba.sk>
Date: Wed, 6 Oct 1993 09:02:36 GMT
References: <1993Oct5.141628.25003@urbana.mcd.mot.com>
Organization: Slovak Technical University Bratislava, Slovakia
X-Newsreader: TIN [version 1.2 PL2]
Lines: 32

Tim Combs (tcombs@dacapo.urbana.mcd.mot.com) wrote:
: I sucked down the source for fvwm and tried to compile on my NetBSD 0.9 machine running
: XFree 1.2.  All was well until  I got an unresolved link error.  In events.c it was looking for _sysconf.
: I looked for this function in all the libraries and couldn't find it.  In unistd.h the sysconf entry has
: a comment beside it that says, /* Not yet */.  Is this functionality implemented yet?

: Thanks
: Tim

In events.c there is a line 
fd_width = sysconf(_SC_OPEN_MAX);

_SC_OPEN_MAX is defined in sys/unistd.h:
#define    _SC_OPEN_MAX            5

sys/unistd.h is automaticaly included from unistd.h.
So you can replace the line 

fd_width = sysconf(_SC_OPEN_MAX);

with the line 

fd_width = (long)_SC_OPEN_MAX;

This is exactly what I had done and fvwm works just fine for me.

Best regards

Roman Valo				valo@cvt.stuba.sk
Slovak Technical University
Bratislava
Slovak Republic