define socklen_t if it doesn't exist
authorJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 30 Dec 2004 01:09:10 +0000 (01:09 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Thu, 30 Dec 2004 01:09:10 +0000 (01:09 +0000)
src/plugin_xmms/http.c

index d8d7de9..a725bdb 100644 (file)
 #include <xmms/util.h>
 #include <xmms/plugin.h>
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "configure.h"
 #include "plugin_common/locale_hack.h"
 #include "FLAC/format.h"
 #include "plugin.h"
 
+#ifndef HAVE_SOCKLEN_T
+typedef unsigned int socklen_t;
+#endif
+
 #define min(x,y) ((x)<(y)?(x):(y))
 #define min3(x,y,z) (min(x,y)<(z)?min(x,y):(z))
 #define min4(x,y,z,w) (min3(x,y,z)<(w)?min3(x,y,z):(w))
@@ -696,6 +704,7 @@ static void *http_buffer_loop(void *arg)
        g_free(url);
        
        pthread_exit(NULL);
+       return NULL; /* avoid compiler warning */
 }
 
 int flac_http_open(gchar * _url, guint64 _offset)