From 37822a1a185a1c4645fdf0224176d21737bfa310 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 26 Jul 1999 10:13:24 +0000 Subject: [PATCH] (INET{,6}_ADDRSTRLEN): add git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6578 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken-common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/roken/roken-common.h b/lib/roken/roken-common.h index c035f9fee..f27ecf3dd 100644 --- a/lib/roken/roken-common.h +++ b/lib/roken/roken-common.h @@ -174,6 +174,18 @@ struct addrinfo { #endif +/* + * constants for inet_ntop + */ + +#ifndef INET_ADDRSTRLEN +#define INET_ADDRSTRLEN 16 +#endif + +#ifndef INET6_ADDRSTRLEN +#define INET6_ADDRSTRLEN 46 +#endif + #ifndef HAVE___ATTRIBUTE__ #define __attribute__(x) #endif