Mac OSX Port - Lightly tested

This commit is contained in:
Joseph Henry 2016-01-25 12:55:29 -08:00
commit 95d28494f6
6 changed files with 101 additions and 19 deletions

View file

@ -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());