[xiph-cvs] cvs commit: icecast/src source.c

Michael Smith msmith at xiph.org
Mon Mar 8 18:36:02 PST 2004



msmith      04/03/08 21:36:01

  Modified:    .        configure.in
               src      source.c
  Log:
  Couple of minor contributed patches.
  
  - Solaris/autoconf nanosleep checking
  - use time_t as appropriate for yp

Revision  Changes    Path
1.46      +3 -1      icecast/configure.in

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/icecast/configure.in,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- configure.in	29 Jan 2004 23:23:52 -0000	1.45
+++ configure.in	9 Mar 2004 02:36:01 -0000	1.46
@@ -62,7 +62,9 @@
 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 --

<p><p>1.80      +2 -2      icecast/src/source.c

Index: source.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/source.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- source.c	27 Feb 2004 15:15:40 -0000	1.79
+++ source.c	9 Mar 2004 02:36:01 -0000	1.80
@@ -376,7 +376,7 @@
     int listen_url_size;
 #ifdef USE_YP
     char *s;
-    long current_time;
+    time_t current_time;
     int    i;
     char *ai;
 
@@ -518,7 +518,7 @@
 
     /*
     ** 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
     */

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list