info-inventor-dev
[Top] [All Lists]

Re: select method in SoSensorMgr.c++

To: Rasmus Tamstorf <tamstorf@xxxxxxxxxxxxx>
Subject: Re: select method in SoSensorMgr.c++
From: "J . A . Magallon" <jamagallon@xxxxxxx>
Date: Sat, 3 Feb 2001 00:49:38 +0100
Cc: info-inventor-dev@xxxxxxxxxxx
In-reply-to: <Pine.SGI.4.10.10102021031560.1759-100000@xxxxxxxxxxxxxxxxxxxxxxx>; from tamstorf@xxxxxxxxxxxxx on Fri, Feb 02, 2001 at 19:40:30 +0100
References: <Pine.SGI.4.10.10102021031560.1759-100000@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
On 02.02 Rasmus Tamstorf wrote:
> Hi,
> 
> I was trying to build inventor under FreeBSD and found that
> SoSensorMgr.c++ uses the 'select' function. According to the man page for
> 'select' on both IRIX, Linux and FreeBSD, you must include 
> 
> #include <unistd.h>
> #include <sys/types.h>
> #include <sys/time.h>
> 
> in order to use it. However, at the moment, neither is included directly,
> so to make life a little easier on other OS'es I suggest to include them.
> 
> The IRIX man page also mentions
> 
> #include <bstring.h>
> 
> but SoSensorMgr.c++ seems to do without it, and it isn't needed on the
> other platforms. 
> 

That can be because IRIX compiler defaults the select return value to int,
and gcc is more pedantic (as it has to be, a function without declaration
is like a garden without flowers...).

-- 
J.A. Magallon                                                      $> cd pub
mailto:jamagallon@xxxxxxx                                          $> more beer

Linux werewolf 2.4.1-ac1 #2 SMP Fri Feb 2 00:19:04 CET 2001 i686


<Prev in Thread] Current Thread [Next in Thread>