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:
Brendan Shanks
2013-04-02 11:00:00 -07:00
parent 9896ed828a
commit a6f48e8d53
+6
View File
@@ -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;