mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 19:50:24 +02:00
* iselect.h: move handling of time related headers to scmconfig.h.
Rename usage of HAVE_SYS_SELECT_H to SCM_HAVE_SYS_SELECT_H. Rename usage of HAVE_WINSOCK2_H to SCM_HAVE_WINSOCK2_H. Rename usage of USE_COOP_THREADS to SCM_USE_COOP_THREADS.
This commit is contained in:
parent
a813d0f815
commit
b31e9238af
1 changed files with 5 additions and 18 deletions
|
@ -51,24 +51,11 @@
|
||||||
/* Needed for FD_SET on some systems. */
|
/* Needed for FD_SET on some systems. */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
# ifdef TIME_WITH_SYS_TIME
|
#ifdef SCM_HAVE_SYS_SELECT_H
|
||||||
# include <sys/time.h>
|
|
||||||
# include <time.h>
|
|
||||||
# else
|
|
||||||
# ifdef HAVE_SYS_TIME_H
|
|
||||||
# include <sys/time.h>
|
|
||||||
# else
|
|
||||||
# ifdef HAVE_TIME_H
|
|
||||||
# include <time.h>
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SELECT_H
|
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_WINSOCK2_H
|
#ifdef SCM_HAVE_WINSOCK2_H
|
||||||
# include <winsock2.h>
|
# include <winsock2.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -95,13 +82,13 @@ SCM_API int scm_internal_select (int fds,
|
||||||
SELECT_TYPE *efds,
|
SELECT_TYPE *efds,
|
||||||
struct timeval *timeout);
|
struct timeval *timeout);
|
||||||
|
|
||||||
#ifdef USE_COOP_THREADS
|
#ifdef SCM_USE_COOP_THREADS
|
||||||
|
|
||||||
SCM_API int scm_I_am_dead;
|
SCM_API int scm_I_am_dead;
|
||||||
|
|
||||||
SCM_API void scm_error_revive_threads (void);
|
SCM_API void scm_error_revive_threads (void);
|
||||||
|
|
||||||
#endif /* USE_COOP_THREADS */
|
#endif /* SCM_USE_COOP_THREADS */
|
||||||
|
|
||||||
SCM_API void scm_init_iselect (void);
|
SCM_API void scm_init_iselect (void);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue