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
Commits
fab539a3
Commit
fab539a3
authored
Feb 14, 2022
by
Deucе
👌🏾
Browse files
Fix Linux builds
parent
6f8ea87b
Pipeline
#2734
passed with stage
in 12 minutes and 44 seconds
Changes
1
Pipelines
1
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
)
...
...
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