Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8fc3c5c6
Commit
8fc3c5c6
authored
Mar 20, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/ServerSocket: add HAVE_UN check to AddAbstract()
Closes
https://github.com/MusicPlayerDaemon/MPD/issues/510
parent
4f408bd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
NEWS
NEWS
+1
-0
ServerSocket.cxx
src/event/ServerSocket.cxx
+6
-0
No files found.
NEWS
View file @
8fc3c5c6
ver 0.21.7 (not yet released)
* require Meson 0.49.0 for native libgcrypt-config support
* fix build failure with -Dlocal_socket=false
ver 0.21.6 (2019/03/17)
* protocol
...
...
src/event/ServerSocket.cxx
View file @
8fc3c5c6
...
...
@@ -402,6 +402,11 @@ ServerSocket::AddPath(AllocatedPath &&path)
void
ServerSocket
::
AddAbstract
(
const
char
*
name
)
{
#if !defined(HAVE_UN)
(
void
)
name
;
throw
std
::
runtime_error
(
"Local socket support is disabled"
);
#else
assert
(
name
!=
nullptr
);
assert
(
*
name
==
'@'
);
...
...
@@ -409,6 +414,7 @@ ServerSocket::AddAbstract(const char *name)
address
.
SetLocal
(
name
);
AddAddress
(
std
::
move
(
address
));
#endif
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment