OSX SDK demo app update

This commit is contained in:
Joseph Henry
2016-07-05 15:52:23 -05:00
parent 075a53475f
commit 9768ba98c2
7 changed files with 86 additions and 12 deletions

View File

@@ -180,12 +180,12 @@ namespace ZeroTier {
#define __STATIC_LWIP__
// iOS Simulator or iOS device
// Do nothing, symbols are statically-linked
#elif TARGET_OS_MAC
#elif TARGET_OS_MAC && !defined(SDK_BUNDLED)
#define __DYNAMIC_LWIP__
// Dynamically load liblwip.so
_libref = dlopen(path, RTLD_NOW);
#else
error "Unknown Apple platform"
#define __STATIC_LWIP__
#endif
#endif