Re: sys_ioctl, sys_select: fix link errors

2010-03-29 Thread Ludovic Courtès
Hi Bruno, Bruno Haible writes: >> >* lib/sys_ioctl.in.h (ioctl): Fix declaration idiom. >> >> This patch appears to break Inetutils bootstrapping: >> >> http://hydra.nixos.org/build/335490 > > Thanks for the quick report. This should fix it. The fix is modeled after the > gettimeofday, f

Re: sys_ioctl, sys_select: fix link errors

2010-03-28 Thread Bruno Haible
Hi Ludo, > > * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom. > > This patch appears to break Inetutils bootstrapping: > > http://hydra.nixos.org/build/335490 Thanks for the quick report. This should fix it. The fix is modeled after the gettimeofday, forkpty, openpty wrappers by Eric.

Re: sys_ioctl, sys_select: fix link errors

2010-03-28 Thread Ludovic Courtès
Hi Bruno, Bruno Haible writes: > 2010-03-28 Bruno Haible > > Fix link errors on mingw. > * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom. > * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with > $(LIBSOCKET). > * modules/sys_select-tests (Mak

sys_ioctl, sys_select: fix link errors

2010-03-28 Thread Bruno Haible
On mingw, I get link errors: g++ -mno-cygwin-L/usr/local/mingw/lib -o test-sys_ioctl-c++.exe test-sys_ioctl-c++.o ../gllib/libgnu.a test-sys_ioctl-c++.o:test-sys_ioctl-c++.cc:(.data+0x4): undefined reference to `_ioctl' collect2: ld returned 1 exit status make[4]: *** [test-sys_ioctl-c++.