Define AI_ADDRCONFIG (needed for OpenBSD and NetBSD)
AI_ADDRCONFIG is not supported by some BSDs (OpenBSD and NetBSD). It's not a critical flag, so define it to 0 just to fix the compile error.
This commit is contained in:
@@ -45,6 +45,12 @@
|
||||
#include "rtp.h"
|
||||
#include "mdns.h"
|
||||
|
||||
// some BSDs (OpenBSD, NetBSD) do not support AI_ADDRCONFIG
|
||||
// it's not critical anyway, define it to 0 (a no-op)
|
||||
#ifndef AI_ADDRCONFIG
|
||||
#define AI_ADDRCONFIG 0
|
||||
#endif
|
||||
|
||||
// only one thread is allowed to use the player at once.
|
||||
// it monitors the request variable (at least when interrupted)
|
||||
static pthread_mutex_t playing_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
Reference in New Issue
Block a user