1
0
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:
Bryan Roe
2020-04-23 16:47:57 -07:00
parent a6fe772422
commit 54b291187b
2 changed files with 14 additions and 5 deletions

View File

@@ -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]