Fix compilation on NetBSD

This commit is contained in:
Cacodemon345 2020-05-29 17:06:38 +00:00
parent fbb3a50e9a
commit c0d658875f
2 changed files with 2 additions and 1 deletions

View file

@ -53,7 +53,7 @@ endif()
if( WIN32 )
add_definitions( -D_WIN32 )
set( SYS_LIBS winmm )
else()
elseif(NOT ${CMAKE_SYSTEM_NAME} MATCHES "^NetBSD$")
set( SYS_LIBS dl )
endif()

View file

@ -27,6 +27,7 @@
#include <string.h>
#include <vector>
#include <string>
#include <cstdarg>
#if defined _WIN32 && !defined _WINDOWS_ // only define this if windows.h is not included.
// I'd rather not include Windows.h for just this. This header is not supposed to pollute everything it touches.