summaryrefslogtreecommitdiff
path: root/netcon/LWIPStack.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-26 14:20:25 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-01-26 14:20:25 -0800
commitc0668dcdf298b4219be3a701a2d3e237cf57e114 (patch)
treeecef265f6d46c0d3a87767ea00af1fb6aafe1447 /netcon/LWIPStack.hpp
parent67f678d60a7907ff196cff42460c23e33cc9ac1e (diff)
parent9cb4bbe2b879f766c7cdfc998ddd55d15ce201a2 (diff)
downloadinfinitytier-c0668dcdf298b4219be3a701a2d3e237cf57e114.tar.gz
infinitytier-c0668dcdf298b4219be3a701a2d3e237cf57e114.zip
Merge branch 'edge' into dev
Diffstat (limited to 'netcon/LWIPStack.hpp')
-rw-r--r--netcon/LWIPStack.hpp6
1 files changed, 6 insertions, 0 deletions
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());