Skip to content

Commit

Permalink
account for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <[email protected]>
  • Loading branch information
briandowns committed Oct 30, 2023
1 parent b90e789 commit 7065568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/optionals/net.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#ifdef _WIN32
#include "windowsapi.h"
#include <Ws2tcpip.h>
#endif

Expand Down Expand Up @@ -33,7 +34,8 @@ static Value parseIp4(DictuVM *vm, int argCount, Value *args) {
if (inet_pton(AF_INET, ipStr, ignore) == 0) {
return newResultError(vm, "invalid ip4 address");
}
#endif
#endif

unsigned char value[IP4_LEN] = {0};
size_t index = 0;

Expand Down

0 comments on commit 7065568

Please sign in to comment.