1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 14:21:10 +02:00

The argument type of usleep varies from system to system,

as does the return type.  We really shouldn't be redefining usleep
at all, but I don't have time to clean that up before the 1.3.
release.  It's on the schedule for afterwards.  (Thanks to Julian
Satchell.)
* coop.c (usleep): Use USLEEP_ARG_TYPE in prototype and
definition.
* scmsigs.c (usleep): Use USLEEP_ARG_TYPE in prototype.
* scmconfig.h: Regenerated.
This commit is contained in:
Jim Blandy 1998-10-12 21:08:38 +00:00
parent fc342a63d9
commit ad1a6f1a3c
3 changed files with 9 additions and 6 deletions

View file

@ -40,7 +40,7 @@
* If you do not wish that, delete this exception notice. */
/* $Id: coop.c,v 1.12 1998-10-04 12:10:11 jimb Exp $ */
/* $Id: coop.c,v 1.13 1998-10-12 21:08:36 jimb Exp $ */
/* Cooperative thread library, based on QuickThreads */
@ -59,9 +59,9 @@ extern unsigned int sleep (unsigned int);
#if defined(MISSING_USLEEP_DECL)
#ifdef USLEEP_RETURNS_VOID
extern void usleep (unsigned);
extern void usleep (USLEEP_ARG_TYPE);
#else
extern int usleep (unsigned);
extern int usleep (USLEEP_ARG_TYPE);
#endif
#endif
@ -673,7 +673,7 @@ void
#else
int
#endif
usleep (unsigned usec)
usleep (USLEEP_ARG_TYPE usec)
{
struct timeval timeout;
timeout.tv_sec = 0;

View file

@ -179,6 +179,9 @@
/* Define if usleep doesn't return a value. */
#undef USLEEP_RETURNS_VOID
/* Define to be the type of the argument to usleep. */
#undef USLEEP_ARG_TYPE
/* Define if your readline library has the rl_getc_function variable. */
#undef HAVE_RL_GETC_FUNCTION

View file

@ -54,9 +54,9 @@
#if defined(MISSING_USLEEP_DECL) || (defined(GUILE_ISELECT) && !defined(HAVE_USLEEP))
#ifdef USLEEP_RETURNS_VOID
extern void usleep (unsigned);
extern void usleep (USLEEP_ARG_TYPE);
#else
extern int usleep (unsigned);
extern int usleep (USLEEP_ARG_TYPE);
#endif
#endif