aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorAndreas Vögele <andreas@kurzegasse.de>2010-06-19 11:14:35 +0200
committerMax Kellermann <max@duempel.org>2010-06-19 13:47:10 +0200
commitdda5415def1ce78febb75199e5986aa051b00e96 (patch)
treedc95507e268fe76c2ebf386bde23ed89e4ee220b /configure.ac
parent4347114455a605f5d1f7da629e56d189a97e5967 (diff)
downloadmpd-dda5415def1ce78febb75199e5986aa051b00e96.tar.gz
mpd-dda5415def1ce78febb75199e5986aa051b00e96.tar.xz
mpd-dda5415def1ce78febb75199e5986aa051b00e96.zip
Make get_remote_uid() work on BSD
I've attached a patch that will make file URIs work on operating systems that provide the getpeereid() function call to check the user ID of the peer connected to a UNIX domain socket.
Diffstat (limited to '')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2a63e269a..c1d3bcd53 100644
--- a/configure.ac
+++ b/configure.ac
@@ -445,6 +445,7 @@ esac
if test x$enable_un = xyes; then
AC_DEFINE(HAVE_UN, 1, [Define if unix domain socket support is enabled])
STRUCT_UCRED
+ AC_CHECK_FUNCS(getpeereid)
fi
dnl --------------------------- Post Protocol Tests ---------------------------