Martin Lambers <[EMAIL PROTECTED]> writes: > On Wed, 07. Jun 2006, 14:31:34 +0200, Simon Josefsson wrote: >> > Is there any interest in this module? >> >> Yes. I think it looks good. Unless someone objects soonish, I think >> we should install it. > > I integrated the lates changes to the sys_socket module. > I also filled in Simon as the maintainer, is that ok?
I installed this instead, based on arpa_inet. How about it? We should think about the WSAStartup/WSACleanup issue with win32 too. Further, the select() on Windows cannot select on file descriptors, only sockets... I just ran into that in GnuTLS. There were proposals on how to deal with sockets under Windows earlier in bug-gnulib, we could integrate those into the "windows" module too. /Simon Index: m4/sys_select_h.m4 =================================================================== RCS file: m4/sys_select_h.m4 diff -N m4/sys_select_h.m4 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ m4/sys_select_h.m4 27 Jun 2006 21:21:13 -0000 1.1 @@ -0,0 +1,18 @@ +# sys_select_h.m4 serial 1 +dnl Copyright (C) 2006 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Adapted from arpa_inet.m4, written by Simon Josefsson. + +AC_DEFUN([gl_HEADER_SYS_SELECT], +[ + AC_CHECK_HEADERS_ONCE([sys/select.h]) + if test $ac_cv_header_sys_select_h = yes; then + SYS_SELECT_H='' + else + SYS_SELECT_H='sys/select.h' + fi + AC_SUBST(SYS_SELECT_H) +]) Index: modules/sys_select =================================================================== RCS file: modules/sys_select diff -N modules/sys_select --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ modules/sys_select 27 Jun 2006 21:21:13 -0000 1.1 @@ -0,0 +1,32 @@ +Description: +A <sys/select.h> for systems lacking it (e.g., Mingw). + +Files: +m4/sys_select_h.m4 + +Depends-on: +sys_socket + +configure.ac: +gl_HEADER_SYS_SELECT + +Makefile.am: +BUILT_SOURCES += $(SYS_SELECT_H) + +# We need the following in order to create <sys/select.h> when the system +# doesn't have one that works with the given compiler. +sys/select.h: + test -d sys || mkdir sys + echo '#include <sys/socket.h>' >[EMAIL PROTECTED] + mv [EMAIL PROTECTED] $@ +MOSTLYCLEANFILES += sys/select.h sys/select.h-t +MOSTLYCLEANDIRS += sys + +Include: +#include <sys/select.h> + +License: +LGPL + +Maintainer: +Simon Josefsson