mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +00:00
1. Fixed compiler warning when NO_IFADDR is defined
2. Added pthread_timedjoin_np() workaround for older glibc/gcc
This commit is contained in:
@@ -1564,7 +1564,9 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_networkInterfaces(duk_context *ctx)
|
||||
{
|
||||
#if !defined(WIN32)
|
||||
duk_eval_string(ctx, "require('os').getDefaultGateways();");
|
||||
void *gwTable = duk_get_heapptr(ctx, -1);
|
||||
#ifndef NO_IFADDR
|
||||
void *gwTable = duk_get_heapptr(ctx, -1);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
duk_push_object(ctx); // [retVal]
|
||||
|
||||
Reference in New Issue
Block a user