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
7b5be264
Commit
7b5be264
authored
Oct 21, 2014
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on MinGW
parent
aa72be06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CMakeLists.txt
CMakeLists.txt
+3
-2
libcaf_core/src/get_mac_addresses.cpp
libcaf_core/src/get_mac_addresses.cpp
+1
-0
No files found.
CMakeLists.txt
View file @
7b5be264
...
@@ -140,12 +140,13 @@ if(NOT APPLE AND NOT WIN32)
...
@@ -140,12 +140,13 @@ if(NOT APPLE AND NOT WIN32)
endif
()
endif
()
# extra setup steps needed on MinGW
# extra setup steps needed on MinGW
if
(
MINGW
)
if
(
MINGW
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DWIN32"
)
add_definitions
(
-D_WIN32_WINNT=0x0600
)
add_definitions
(
-DWIN32
)
include
(
GenerateExportHeader
)
include
(
GenerateExportHeader
)
set
(
LD_FLAGS
"ws2_32 -liphlpapi"
)
set
(
LD_FLAGS
"ws2_32 -liphlpapi"
)
endif
()
endif
()
# needed by subprojects
# needed by subprojects
set
(
LD_FLAGS
${
CMAKE_LD_LIBS
}
)
set
(
LD_FLAGS
${
LD_FLAGS
}
${
CMAKE_LD_LIBS
}
)
################################################################################
################################################################################
...
...
libcaf_core/src/get_mac_addresses.cpp
View file @
7b5be264
...
@@ -154,6 +154,7 @@ std::vector<iface_info> get_mac_addresses() {
...
@@ -154,6 +154,7 @@ std::vector<iface_info> get_mac_addresses() {
// windows
// windows
#include <ws2tcpip.h>
#include <winsock2.h>
#include <winsock2.h>
#include <vector>
#include <vector>
#include <string>
#include <string>
...
...
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