Hi Simon, > I have seen Bruno's recent patch to add separate modules for each and > every socket function. That's a better approach IMHO. > > Further, as far as I can tell, Bruno's gnulib module descriptions will > pull in the winsock file when needed.
That's because Paolo and I are not yet completely done with the modularization of <sys/socket.h>: close() and ioctl() still to be done. I intended to remove this unconditional AC_LIBOBJ(winsock) when the job was done. > GnuTLS only calls recv+send from the POSIX > socket functions (the rest are called by the application), and it > handles Windows error codes internally. Thus, I don't want send/recv to > be replaced by gnulib, but I want a sys/socket.h header file. Still, you will have to #undef recv and #undef send, to undo the link error arrangement done by gnulib (because the case of wanting module 'sys_socket' but not 'recv' or 'send' is much more likely to be a mistake than an intended configuration). Bruno