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

Brendan brendan at xiph.org
Thu Mar 27 09:09:57 PST 2003



brendan     03/03/27 12:09:57

  Modified:    src      main.c
  Log:
  First crack at making YP/curl optional.

Revision  Changes    Path
1.25      +7 -0      icecast/src/main.c

Index: main.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- main.c	15 Mar 2003 02:10:17 -0000	1.24
+++ main.c	27 Mar 2003 17:09:57 -0000	1.25
@@ -1,3 +1,4 @@
+/* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- */
 #include <stdio.h>
 #include <string.h>
 
@@ -28,7 +29,9 @@
 #include "logging.h"
 #include "xslt.h"
 #include "fserve.h"
+#ifdef HAVE_CURL
 #include "geturl.h"
+#endif
 
 #include <libxml/xmlmemory.h>
 
@@ -63,12 +66,16 @@
     global_initialize();
     refbuf_initialize();
     xslt_initialize();
+#ifdef HAVE_CURL
     curl_initialize();
+#endif
 }
 
 static void _shutdown_subsystems(void)
 {
+#ifdef HAVE_CURL
     curl_shutdown();
+#endif
     fserve_shutdown();
     xslt_shutdown();
     refbuf_shutdown();

<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