fix "redefinition of socklen_t" problem on freebsd
authorJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 2 Sep 2005 05:03:53 +0000 (05:03 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Fri, 2 Sep 2005 05:03:53 +0000 (05:03 +0000)
src/plugin_xmms/http.c

index ad6475a..0876bb4 100644 (file)
@@ -44,7 +44,8 @@
 #include "FLAC/format.h"
 #include "plugin.h"
 
-#ifndef HAVE_SOCKLEN_T
+/* on FreeBSD we get socklen_t from <sys/socket.h> */
+#if (!defined HAVE_SOCKLEN_T) && !defined(__FreeBSD__)
 typedef unsigned int socklen_t;
 #endif