From: davilla Date: Thu, 13 Oct 2011 06:39:48 +0000 (-0400) Subject: fixed darwin lib name X-Git-Tag: upstream/2.2.0~1^2~245 X-Git-Url: https://git.piment-noir.org/?p=deb_libcec.git;a=commitdiff_plain;h=30a57ee80e9222abfbeefd257da1c3ddbaecb3b0 fixed darwin lib name --- diff --git a/include/cecloader.h b/include/cecloader.h index ceba1e3..9316bef 100644 --- a/include/cecloader.h +++ b/include/cecloader.h @@ -79,10 +79,18 @@ CEC::ICECAdapter *LoadLibCec(const char *strName, CEC::cec_logical_address iLogi if (!g_libCEC) { +#if defined(__APPLE__) + g_libCEC = dlopen("libcec.dylib", RTLD_LAZY); +#else g_libCEC = dlopen("libcec.so", RTLD_LAZY); +#endif if (!g_libCEC) { +#if defined(__APPLE__) + cout << "cannot find libcec.dylib" << endl; +#else cout << "cannot find libcec.so" << endl; +#endif return NULL; } }