From f552f24e6e9e7a6b6c7b95ecf04ab4136fe0e798 Mon Sep 17 00:00:00 2001 From: Mikal Villa Date: Sat, 3 Jan 2015 21:35:30 +0100 Subject: [PATCH] Following BSD standards --- SOCKS.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SOCKS.h b/SOCKS.h index 9c77a703..fa387ada 100644 --- a/SOCKS.h +++ b/SOCKS.h @@ -18,7 +18,8 @@ * - 256 on mingw. * * */ -#define HOST_NAME_MAX 256 +#include +#define HOST_NAME_MAX MAXHOSTNAMELEN #endif namespace i2p