diff --git a/libguile/coop.c b/libguile/coop.c index 8935997f6..0cb1bea0e 100644 --- a/libguile/coop.c +++ b/libguile/coop.c @@ -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; diff --git a/libguile/scmconfig.h.in b/libguile/scmconfig.h.in index 33cc60c38..e6e6d245f 100644 --- a/libguile/scmconfig.h.in +++ b/libguile/scmconfig.h.in @@ -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 diff --git a/libguile/scmsigs.c b/libguile/scmsigs.c index 13e139761..9d7ced3ce 100644 --- a/libguile/scmsigs.c +++ b/libguile/scmsigs.c @@ -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