diff options
author | Garrett D'Amore <garrett@damore.org> | 2022-04-18 17:52:30 -0400 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2022-04-18 17:52:30 -0400 |
commit | 8e6c31e871a71f63745f5dd18bbcc66ace5fdd14 (patch) | |
tree | ff9d6874cef39008b312b265f446483ce6737a70 /src | |
parent | 63252794a0a1bec04e46ece82f7a3edf0b527d82 (diff) | |
download | nanomsg-8e6c31e871a71f63745f5dd18bbcc66ace5fdd14.tar.gz |
fixes #1076 Fails to build from source in Visual Studio
Diffstat (limited to 'src')
-rw-r--r-- | src/transports/utils/literal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/transports/utils/literal.c b/src/transports/utils/literal.c index 8184fae..ee54f0a 100644 --- a/src/transports/utils/literal.c +++ b/src/transports/utils/literal.c @@ -1,5 +1,6 @@ /* Copyright (c) 2012-2013 Martin Sustrik All rights reserved. + Copyright 2022 Staysail Systems, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -25,12 +26,14 @@ #include "../../utils/err.h" #include "../../utils/fast.h" -#include <netdb.h> #include <string.h> #ifndef NN_HAVE_WINDOWS +#include <netdb.h> #include <arpa/inet.h> #include <netinet/in.h> +#else +#include <winsock.h> #endif void nn_literal_link_local_resolve(struct in6_addr *in6addr, int64_t *sin6_scope_id, char *addr) |