diff options
author | Simon Josefsson <simon@josefsson.org> | 2005-10-24 23:33:28 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2005-10-24 23:33:28 +0000 |
commit | ab28b8dd19e91a799683ba3b6daa0a89a1f9820d (patch) | |
tree | d10428283a000986edc0d5994323449be8f11623 /gl/inet_ntop.h | |
parent | 0e99dbd6d874160fb18d292c766e0da52848efeb (diff) | |
download | gnutls-ab28b8dd19e91a799683ba3b6daa0a89a1f9820d.tar.gz |
Update.
Diffstat (limited to 'gl/inet_ntop.h')
-rw-r--r-- | gl/inet_ntop.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gl/inet_ntop.h b/gl/inet_ntop.h index 30b9f4c996..6565f0bade 100644 --- a/gl/inet_ntop.h +++ b/gl/inet_ntop.h @@ -16,9 +16,9 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include <sys/types.h> -#include <sys/socket.h> -#include <netinet/in.h> -#include <arpa/inet.h> +#ifdef HAVE_ARPA_INET_H +# include <arpa/inet.h> +#endif /* Converts an internet address from internal format to a printable, presentable format. @@ -36,6 +36,7 @@ For more details, see the POSIX:2001 specification <http://www.opengroup.org/susv3xsh/inet_ntop.html>. */ -#if !HAVE_INET_NTOP /* not already defined and declared in <arpa/inet.h> ? */ -extern const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); +#ifndef HAVE_DECL_INET_NTOP +extern const char *inet_ntop (int af, const void *restrict src, + char *restrict dst, socklen_t cnt); #endif |