define socklen_t if it doesn't exist

This commit is contained in:
Josh Coalson
2004-12-30 01:09:10 +00:00
parent def597ee59
commit d56ac59518

View File

@@ -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)