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
|