$hostname variable

This commit is contained in:
Igor Sysoev
2008-05-16 14:39:06 +00:00
parent 76566f88d9
commit 3be5257a4f
6 changed files with 48 additions and 32 deletions

View File

@@ -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))