From 30a57ee80e9222abfbeefd257da1c3ddbaecb3b0 Mon Sep 17 00:00:00 2001 From: davilla Date: Thu, 13 Oct 2011 02:39:48 -0400 Subject: [PATCH] fixed darwin lib name --- include/cecloader.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } } -- 2.34.1