diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:07:18 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:07:18 +0000 |
commit | d4f319deafc41d000c7e249e1acfe9626dec52a8 (patch) | |
tree | c123d64916e46206eb02ecf82fd945766af32198 /src/os_compat.h | |
parent | 623a86f389dc3c1cce52b1d0e6ef64d27b26f023 (diff) | |
download | mpd-d4f319deafc41d000c7e249e1acfe9626dec52a8.tar.gz mpd-d4f319deafc41d000c7e249e1acfe9626dec52a8.tar.xz mpd-d4f319deafc41d000c7e249e1acfe9626dec52a8.zip |
support listening on unix domain sockets
This trivial patch addresses bug 1639. When a bind_to_address
argument starts with a slash, assume that it is the address of a Unix
domain socket.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7235 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/os_compat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_compat.h b/src/os_compat.h index c6268d0d8..6409053c7 100644 --- a/src/os_compat.h +++ b/src/os_compat.h @@ -64,6 +64,7 @@ #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> +#include <sys/un.h> #include <pwd.h> #include <grp.h> #include <limits.h> |