From: Simon Josefsson Date: Tue, 27 Jun 2006 21:21:13 +0000 (+0000) Subject: Add sys_select module. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e5eb8ffca4761e3074bf800612e095a6e7d9a6f;p=pspp Add sys_select module. --- diff --git a/ChangeLog b/ChangeLog index dccbc8733b..185240b363 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-27 Simon Josefsson + + * modules/sys_select: New file, suggested by Paul Eggert and + Martin Lambers. + 2006-06-26 Bruno Haible * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H. diff --git a/m4/ChangeLog b/m4/ChangeLog index af8c904db4..a660e6f8d9 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2006-06-27 Simon Josefsson + + * sys_select_h.m4: New file, suggested by Paul Eggert and Martin + Lambers. + 2006-06-27 Bruno Haible * stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the diff --git a/m4/sys_select_h.m4 b/m4/sys_select_h.m4 new file mode 100644 index 0000000000..f7070fad89 --- /dev/null +++ b/m4/sys_select_h.m4 @@ -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) +]) diff --git a/modules/sys_select b/modules/sys_select new file mode 100644 index 0000000000..efe3f88997 --- /dev/null +++ b/modules/sys_select @@ -0,0 +1,32 @@ +Description: +A 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 when the system +# doesn't have one that works with the given compiler. +sys/select.h: + test -d sys || mkdir sys + echo '#include ' >$@-t + mv $@-t $@ +MOSTLYCLEANFILES += sys/select.h sys/select.h-t +MOSTLYCLEANDIRS += sys + +Include: +#include + +License: +LGPL + +Maintainer: +Simon Josefsson