From 5323b27c95db777428b19d2712737fad52b92cc6 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 9 Mar 2004 02:36:01 +0000 Subject: [PATCH] Couple of minor contributed patches. - Solaris/autoconf nanosleep checking - use time_t as appropriate for yp svn path=/trunk/icecast/; revision=5921 --- configure.in | 4 +++- src/source.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 32d056e8..c572a931 100644 --- a/configure.in +++ b/configure.in @@ -62,7 +62,9 @@ dnl Checks for typedefs, structures, and compiler characteristics. dnl Check for types dnl Checks for library functions. -AC_CHECK_FUNCS(localtime_r nanosleep poll) +AC_CHECK_FUNCS(localtime_r poll) +AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP, 1, + [Define if you have nanosleep])) XIPH_NET dnl -- configure options -- diff --git a/src/source.c b/src/source.c index c9c3b310..3d3b204f 100644 --- a/src/source.c +++ b/src/source.c @@ -376,7 +376,7 @@ static void source_init (source_t *source) int listen_url_size; #ifdef USE_YP char *s; - long current_time; + time_t current_time; int i; char *ai; @@ -518,7 +518,7 @@ static void source_init (source_t *source) /* ** Now, if we have a fallback source and override is on, we want - ** to steal it's clients, because it means we've come back online + ** to steal its clients, because it means we've come back online ** after a failure and they should be gotten back from the waiting ** loop or jingle track or whatever the fallback is used for */