Commit d56ac595 authored by Josh Coalson's avatar Josh Coalson
Browse files

define socklen_t if it doesn't exist

parent def597ee
...@@ -35,11 +35,19 @@ ...@@ -35,11 +35,19 @@
#include <xmms/util.h> #include <xmms/util.h>
#include <xmms/plugin.h> #include <xmms/plugin.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "configure.h" #include "configure.h"
#include "plugin_common/locale_hack.h" #include "plugin_common/locale_hack.h"
#include "FLAC/format.h" #include "FLAC/format.h"
#include "plugin.h" #include "plugin.h"
#ifndef HAVE_SOCKLEN_T
typedef unsigned int socklen_t;
#endif
#define min(x,y) ((x)<(y)?(x):(y)) #define min(x,y) ((x)<(y)?(x):(y))
#define min3(x,y,z) (min(x,y)<(z)?min(x,y):(z)) #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)) #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) ...@@ -696,6 +704,7 @@ static void *http_buffer_loop(void *arg)
g_free(url); g_free(url);
pthread_exit(NULL); pthread_exit(NULL);
return NULL; /* avoid compiler warning */
} }
int flac_http_open(gchar * _url, guint64 _offset) int flac_http_open(gchar * _url, guint64 _offset)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment