On Sat, Feb 16, 2013 at 03:24:39AM +0100, Michal Petrucha wrote:
I tried building udpcast on a current Arch Linux today and I got the following error:
gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -Wall -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DUSE_ASSEMBLER -O6 -DNO_BB -I. -I. -c -o console.o console.c In file included from console.c:7:0: console.h:25:9: error: unknown type name 'fd_set'
Luckily, a fix is fairly straightforward; the definition of fd_set was moved into a different header (which is included anyway). See the attached patch.
Michal Petrucha
I hit the same bug on Fedora Rawhide a few days ago, and came up with a different patch which I think is more correct than the one posted by Michal, because it doesn't assume that Win32 has <sys/select.h> (I have no idea if it does or not).
See attached.
Rich.