SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
13
devel/libcoap/patches/patch-examples_client_c
Normal file
13
devel/libcoap/patches/patch-examples_client_c
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: examples/client.c
|
||||
--- examples/client.c.orig
|
||||
+++ examples/client.c
|
||||
@@ -1266,6 +1266,9 @@ get_session(
|
||||
memset( &hints, 0, sizeof( struct addrinfo ) );
|
||||
hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */
|
||||
hints.ai_socktype = COAP_PROTO_RELIABLE(proto) ? SOCK_STREAM : SOCK_DGRAM; /* Coap uses UDP */
|
||||
+#ifndef AI_ALL
|
||||
+#define AI_ALL 0
|
||||
+#endif
|
||||
hints.ai_flags = AI_PASSIVE | AI_NUMERICHOST | AI_NUMERICSERV | AI_ALL;
|
||||
|
||||
s = getaddrinfo( local_addr, local_port, &hints, &result );
|
Loading…
Add table
Add a link
Reference in a new issue