Network portability fixes - SLiRP and Pcap now both work on Linux and FreeBSD.

This commit is contained in:
waltje
2017-10-28 03:32:46 -04:00
parent 24d2c0866b
commit 4a1bd38435
3 changed files with 67 additions and 71 deletions

View File

@@ -222,7 +222,11 @@ void* fluidsynth_init(device_t *info)
memset(data, 0, sizeof(fluidsynth_t));
/* Try loading the DLL. */
#ifdef WIN32
fluidsynth_handle = dynld_module("libfluidsynth.dll", fluidsynth_imports);
#else
fluidsynth_handle = dynld_module("libfluidsynth.so", fluidsynth_imports);
#endif
if (fluidsynth_handle == NULL)
{
ui_msgbox(MBX_ERROR, (wchar_t *)IDS_2171);