From a6f48e8d53e59b0196f3ed698c9eee2852aa714d Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Tue, 2 Apr 2013 11:00:00 -0700 Subject: [PATCH] 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. --- rtsp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtsp.c b/rtsp.c index 011ed0f4..421dd2c0 100644 --- a/rtsp.c +++ b/rtsp.c @@ -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;