Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
78ce68f1
Commit
78ce68f1
authored
Nov 06, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linker issue with socket_guard
parent
e35e7016
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
libcaf_core/src/get_mac_addresses.cpp
libcaf_core/src/get_mac_addresses.cpp
+4
-2
No files found.
libcaf_core/src/get_mac_addresses.cpp
View file @
78ce68f1
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include "caf/detail/get_mac_addresses.hpp"
#include "caf/detail/get_mac_addresses.hpp"
#include "caf/config.hpp"
#include "caf/config.hpp"
#include "caf/detail/s
ocket
_guard.hpp"
#include "caf/detail/s
cope
_guard.hpp"
#if defined(CAF_MACOS) || defined(CAF_BSD) || defined(CAF_IOS)
#if defined(CAF_MACOS) || defined(CAF_BSD) || defined(CAF_IOS)
...
@@ -130,7 +130,9 @@ std::vector<iface_info> get_mac_addresses() {
...
@@ -130,7 +130,9 @@ std::vector<iface_info> get_mac_addresses() {
perror
(
"socket"
);
perror
(
"socket"
);
return
{};
return
{};
}
}
socket_guard
guard
{
sck
};
auto
g
=
make_scope_guard
([
&
]
{
close
(
sck
);
});
// query available interfaces
// query available interfaces
char
buf
[
1024
]
=
{
0
};
char
buf
[
1024
]
=
{
0
};
ifconf
ifc
;
ifconf
ifc
;
...
...
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