From 95d28494f6fbe352ac7746f0c544e3527534ba0d Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Mon, 25 Jan 2016 12:55:29 -0800 Subject: Mac OSX Port - Lightly tested --- netcon/LWIPStack.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'netcon/LWIPStack.hpp') diff --git a/netcon/LWIPStack.hpp b/netcon/LWIPStack.hpp index fedbdd5f..2ad1a843 100644 --- a/netcon/LWIPStack.hpp +++ b/netcon/LWIPStack.hpp @@ -132,7 +132,13 @@ public: LWIPStack(const char* path) : _libref(NULL) { + +#if defined(__linux__) _libref = dlmopen(LM_ID_NEWLM, path, RTLD_NOW); +#elif defined(__APPLE__) + _libref = dlopen(path, RTLD_NOW); +#endif + if(_libref == NULL) printf("dlerror(): %s\n", dlerror()); -- cgit v1.2.3