Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
6f8ea87be1a44bc5ba74cf903c0b56763c4ad40a...fab539a39fe73c8a8e6c31486eca6c466af311e4
Commits (1)
Fix Linux builds
· fab539a3
Deucе
authored
Feb 14, 2022
fab539a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/xpdev/CMakeLists.txt
src/xpdev/CMakeLists.txt
+4
-0
No files found.
src/xpdev/CMakeLists.txt
View file @
fab539a3
...
...
@@ -123,6 +123,10 @@ if(HAS_DEV_MACHINE_SPKR_H)
target_compile_definitions
(
xpdev PRIVATE HAS_DEV_MACHINE_SPKR_H
)
endif
()
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
target_compile_definitions
(
xpdevplus PUBLIC POSIX_C_SOURCE=200809L _DEFAULT_SOURCE _BSD_SOURCE SPEED_MACROS_ONLY _GNU_SOURCE _FILE_OFFSET_BITS=64
)
endif
()
if
(
WIN32
)
target_compile_definitions
(
xpdev PUBLIC _WIN32 _WIN32_WINNT=0x0501 WINVER=0x0501 MSVCRT_VERSION=0x0501 _WIN32_IE=0x0500
)
target_link_libraries
(
xpdev iphlpapi ws2_32 winmm netapi32
)
...
...