diff --git a/src/network/net_pcap.c b/src/network/net_pcap.c index efbda840c..ba56cebfb 100644 --- a/src/network/net_pcap.c +++ b/src/network/net_pcap.c @@ -248,6 +248,8 @@ net_pcap_prepare(netdev_t *list) /* Try loading the DLL. */ #ifdef _WIN32 pcap_handle = dynld_module("wpcap.dll", pcap_imports); +#elif defined __APPLE__ + pcap_handle = dynld_module("libpcap.dylib", pcap_imports); #else pcap_handle = dynld_module("libpcap.so", pcap_imports); #endif diff --git a/src/network/pcap_if.c b/src/network/pcap_if.c index 7f08b723d..f168f7ae0 100644 --- a/src/network/pcap_if.c +++ b/src/network/pcap_if.c @@ -269,6 +269,8 @@ main(int argc, char **argv) /* Try loading the DLL. */ #ifdef _WIN32 pcap_handle = dynld_module("wpcap.dll", pcap_imports); +#elif defined __APPLE__ + pcap_handle = dynld_module("libpcap.dylib", pcap_imports); #else pcap_handle = dynld_module("libpcap.so", pcap_imports); #endif diff --git a/src/printer/png.c b/src/printer/png.c index 4941c3098..22488a9ba 100644 --- a/src/printer/png.c +++ b/src/printer/png.c @@ -61,6 +61,8 @@ #ifdef _WIN32 # define PATH_PNG_DLL "libpng16-16.dll" +#elif defined __APPLE__ +# define PATH_PNG_DLL "libpng16.dylib" #else # define PATH_PNG_DLL "libpng16.so" #endif diff --git a/src/printer/prt_ps.c b/src/printer/prt_ps.c index de30a962c..5f16784cb 100644 --- a/src/printer/prt_ps.c +++ b/src/printer/prt_ps.c @@ -43,8 +43,13 @@ #define GS_ARG_ENCODING_UTF8 1 #define gs_error_Quit -101 +#ifdef _WIN32 #define PATH_GHOSTSCRIPT_DLL "gsdll32.dll" -#define PATH_GHOSTSCRIPT_SO "libgs.so" +#elif defined __APPLE__ +#define PATH_GHOSTSCRIPT_DLL "libgs.dylib" +#else +#define PATH_GHOSTSCRIPT_DLL "libgs.so" +#endif #define POSTSCRIPT_BUFFER_LENGTH 65536 diff --git a/src/sound/midi_fluidsynth.c b/src/sound/midi_fluidsynth.c index b91597309..874d328f3 100644 --- a/src/sound/midi_fluidsynth.c +++ b/src/sound/midi_fluidsynth.c @@ -225,6 +225,8 @@ void* fluidsynth_init(const device_t *info) /* Try loading the DLL. */ #ifdef _WIN32 fluidsynth_handle = dynld_module("libfluidsynth.dll", fluidsynth_imports); +#elif defined __APPLE__ + fluidsynth_handle = dynld_module("libfluidsynth.dylib", fluidsynth_imports); #else fluidsynth_handle = dynld_module("libfluidsynth.so", fluidsynth_imports); #endif