[icecast] icecast + irix

Jack Moffitt jack at xiph.org
Wed Feb 20 17:03:21 UTC 2002



> well i fixed it a bit, if you add 
> 
> #include <sys/select.h>
> 
> it gets rid of:
> 
> connection.c:192: `fd_set' undeclared (first use in this function)
> connection.c:192: (Each undeclared identifier is reported only once
> connection.c:192: for each function it appears in.)
> connection.c:192: parse error before "rfds"
> connection.c:193: storage size of `tv' isn't known
> connection.c:209: warning: implicit declaration of function `FD_ZERO'
> connection.c:209: `rfds' undeclared (first use in this function)
> connection.c:213: warning: implicit declaration of function `FD_SET'
> connection.c:223: warning: implicit declaration of function `select'
> connection.c:225: warning: implicit declaration of function `FD_ISSET'

Great. :)

> but i'm still left with:
> 
>         gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT      -g -O2 -Wall
> -c connection.c
> connection.c: In function `get_connection':
> connection.c:193: storage size of `tv' isn't known
> connection.c:223: warning: implicit declaration of function `select'
> connection.c:193: warning: unused variable `tv'
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> 
> Here's the top of the manpage:
> 
> NAME
>      select - synchronous I/O multiplexing
> 
> SYNOPSIS
>      #include <unistd.h>
>      #include <sys/types.h>
>      #include <bstring.h>
>      #include <sys/time.h>

<p>Looks like you need <sys/time.h> too.  struct timeval is probably
declared in there (that's what 'tv' is).

jack.

--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list