From 04975d88e867ff11e9eaec5f3d97b7249405202a Mon Sep 17 00:00:00 2001 From: msmith 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 git-svn-id: http://svn.xiph.org/trunk@5921 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- icecast/configure.in | 4 +++- icecast/src/source.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/icecast/configure.in b/icecast/configure.in index 32d056e80..c572a931b 100644 --- a/icecast/configure.in +++ b/icecast/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/icecast/src/source.c b/icecast/src/source.c index c9c3b310a..3d3b204f6 100644 --- a/icecast/src/source.c +++ b/icecast/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 */ -- 2.11.4.GIT