summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_config.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-05-16 14:39:06 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-05-16 14:39:06 +0000
commit3be5257a4f8e6e0fd5d058a314adbe5b7f5b9dd7 (patch)
treeeb8ec2fe0dc4f288caa29e991318cbd9bc21e36b /src/core/ngx_config.h
parent76566f88d9984cc870aa6ccb4eca64ef43ff40d2 (diff)
downloadnginx-3be5257a4f8e6e0fd5d058a314adbe5b7f5b9dd7.tar.gz
nginx-3be5257a4f8e6e0fd5d058a314adbe5b7f5b9dd7.tar.bz2
$hostname variable
Diffstat (limited to 'src/core/ngx_config.h')
-rw-r--r--src/core/ngx_config.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h
index a6a9f5d27..8b802aa9c 100644
--- a/src/core/ngx_config.h
+++ b/src/core/ngx_config.h
@@ -116,10 +116,11 @@ typedef intptr_t ngx_flag_t;
#define INET_ADDRSTRLEN 16
#endif
-#define NGX_MAXHOSTNAMELEN 64
-/*
-#define NGX_MAXHOSTNAMELEN MAXHOSTNAMELEN
-*/
+#ifdef MAXHOSTNAMELEN
+#define NGX_MAXHOSTNAMELEN MAXHOSTNAMELEN
+#else
+#define NGX_MAXHOSTNAMELEN 256
+#endif
#if ((__GNU__ == 2) && (__GNUC_MINOR__ < 8))