summaryrefslogtreecommitdiff
path: root/src/plugin_xmms
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2004-12-30 01:09:10 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2004-12-30 01:09:10 +0000
commitd56ac5951826231816102a4b95fab9760d046cc8 (patch)
tree3e5af610199994fc469afee07b028eb9d0f530e8 /src/plugin_xmms
parentdef597ee59e41e6ac9a170dead3e1f8300135689 (diff)
downloadflac-d56ac5951826231816102a4b95fab9760d046cc8.tar.gz
define socklen_t if it doesn't exist
Diffstat (limited to 'src/plugin_xmms')
-rw-r--r--src/plugin_xmms/http.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugin_xmms/http.c b/src/plugin_xmms/http.c
index d8d7de97..a725bdbd 100644
--- a/src/plugin_xmms/http.c
+++ b/src/plugin_xmms/http.c
@@ -35,11 +35,19 @@
#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)