mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix "redefinition of socklen_t" problem on freebsd
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user