system/fd_util.h: avoid symbol conflict with statically linked libmpdclient

This commit is contained in:
Denis Krjuchkov 2013-11-18 16:35:22 +06:00
parent 0bcc477d46
commit 740d8ec5ab
1 changed files with 5 additions and 0 deletions

View File

@ -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).