/*
- * Functions for AF_ agnostic ipv4/ipv6 handling.
- *
* (c) 2008 Florian Westphal <fw@strlen.de>, public domain.
*/
#include "portab.h"
+/**
+ * @file
+ * Functions for AF_ agnostic ipv4/ipv6 handling.
+ */
+
#include <assert.h>
#include <stdio.h>
#include <string.h>
assert(ip_str);
memset(&hints, 0, sizeof(hints));
+#ifdef AI_NUMERICHOST
hints.ai_flags = AI_NUMERICHOST;
+#endif
#ifndef WANT_IPV6 /* do not convert ipv6 addresses */
hints.ai_family = AF_INET;
#endif