aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-11-18 16:35:22 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-11-18 16:35:22 +0600
commit740d8ec5ab959fce70cecf877a0bddfc52cbfe0e (patch)
treed743ac670f56c7cb1a00ab7ffced126bb00adb20
parent0bcc477d46e3a4a5c107ed267e1c864be8d7b2c2 (diff)
downloadmpd-740d8ec5ab959fce70cecf877a0bddfc52cbfe0e.tar.gz
mpd-740d8ec5ab959fce70cecf877a0bddfc52cbfe0e.tar.xz
mpd-740d8ec5ab959fce70cecf877a0bddfc52cbfe0e.zip
system/fd_util.h: avoid symbol conflict with statically linked libmpdclient
Diffstat (limited to '')
-rw-r--r--src/system/fd_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system/fd_util.h b/src/system/fd_util.h
index 9003b1616..b7a9a6dd3 100644
--- a/src/system/fd_util.h
+++ b/src/system/fd_util.h
@@ -104,6 +104,11 @@ socketpair_cloexec_nonblock(int domain, int type, int protocol, int sv[2]);
#endif
+#ifdef HAVE_LIBMPDCLIENT
+/* Avoid symbol conflict with statically linked libmpdclient */
+#define socket_cloexec_nonblock socket_cloexec_nonblock_noconflict
+#endif
+
/**
* Wrapper for socket(), which sets the CLOEXEC and the NONBLOCK flag
* (atomically if supported by the OS).