Fix compilation on NetBSD (#8)

This commit is contained in:
Cacodemon345 2020-05-30 08:26:23 +00:00 committed by GitHub
parent fbb3a50e9a
commit 425ac9048d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -54,7 +54,7 @@ if( WIN32 )
add_definitions( -D_WIN32 ) add_definitions( -D_WIN32 )
set( SYS_LIBS winmm ) set( SYS_LIBS winmm )
else() else()
set( SYS_LIBS dl ) set( SYS_LIBS ${CMAKE_DL_LIBS} )
endif() endif()
include_directories( "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/zmusic" "${CMAKE_CURRENT_SOURCE_DIR}/../include" "${CMAKE_CURRENT_SOURCE_DIR}/../thirdparty/dumb/include" "${ZLIB_INCLUDE_DIR}" "${ADL_INCLUDE_DIR}" "${OPN_INCLUDE_DIR}" "${TIMIDITYPP_INCLUDE_DIR}" "${TIMIDITY_INCLUDE_DIR}" "${WILDMIDI_INCLUDE_DIR}" "${OPLSYNTH_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" ) include_directories( "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/zmusic" "${CMAKE_CURRENT_SOURCE_DIR}/../include" "${CMAKE_CURRENT_SOURCE_DIR}/../thirdparty/dumb/include" "${ZLIB_INCLUDE_DIR}" "${ADL_INCLUDE_DIR}" "${OPN_INCLUDE_DIR}" "${TIMIDITYPP_INCLUDE_DIR}" "${TIMIDITY_INCLUDE_DIR}" "${WILDMIDI_INCLUDE_DIR}" "${OPLSYNTH_INCLUDE_DIR}" "${GME_INCLUDE_DIR}" )

View file

@ -28,6 +28,7 @@
#define WILDMIDI_LIB_H #define WILDMIDI_LIB_H
#include "../../../source/zmusic/fileio.h" #include "../../../source/zmusic/fileio.h"
#include <stdarg.h>
namespace WildMidi namespace WildMidi
{ {