1 #ifndef SCM_ISELECT_H 2 #define SCM_ISELECT_H 3 4 /* Copyright 1997-1998,2000-2002,2006,2013,2018 5 Free Software Foundation, Inc. 6 7 This file is part of Guile. 8 9 Guile is free software: you can redistribute it and/or modify it 10 under the terms of the GNU Lesser General Public License as published 11 by the Free Software Foundation, either version 3 of the License, or 12 (at your option) any later version. 13 14 Guile is distributed in the hope that it will be useful, but WITHOUT 15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 17 License for more details. 18 19 You should have received a copy of the GNU Lesser General Public 20 License along with Guile. If not, see 21 <https://www.gnu.org/licenses/>. */ 22 23 24 25 #include <sys/types.h> /* Needed for FD_SET on some systems. */ 26 #ifdef __MINGW32__ 27 #include <winsock2.h> 28 #else 29 #include <sys/select.h> 30 #endif 31 32 #include "libguile/scm.h" 33 34 35 SCM_API int scm_std_select (int fds, 36 fd_set *rfds, 37 fd_set *wfds, 38 fd_set *efds, 39 struct timeval *timeout); 40 41 #define SELECT_TYPE fd_set 42 43 #endif /* SCM_ISELECT_H */ 44