summaryrefslogtreecommitdiff
path: root/fake-getaddrinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'fake-getaddrinfo.h')
-rw-r--r--fake-getaddrinfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fake-getaddrinfo.h b/fake-getaddrinfo.h
index de1748f6..7da87142 100644
--- a/fake-getaddrinfo.h
+++ b/fake-getaddrinfo.h
@@ -7,6 +7,7 @@
#ifndef AI_PASSIVE
# define AI_PASSIVE 1
+# define AI_CANONNAME 2
#endif
#ifndef NI_NUMERICHOST
@@ -25,7 +26,7 @@ struct addrinfo {
char *ai_canonname; /* canonical name for hostname */
struct sockaddr *ai_addr; /* binary address */
struct addrinfo *ai_next; /* next structure in linked list */
-}
+};
#endif /* !HAVE_STRUCT_ADDRINFO */
#ifndef HAVE_GETADDRINFO