summaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_core.h6
-rw-r--r--src/core/ngx_hunk.h4
-rw-r--r--src/core/ngx_string.h4
3 files changed, 13 insertions, 1 deletions
diff --git a/src/core/ngx_core.h b/src/core/ngx_core.h
index f5b25c43a..adab5018c 100644
--- a/src/core/ngx_core.h
+++ b/src/core/ngx_core.h
@@ -10,4 +10,10 @@
#define NGX_DECLINED -4
+#define NGX_MAXHOSTNAMELEN 32
+/*
+#define NGX_MAXHOSTNAMELEN MAXHOSTNAMELEN
+*/
+
+
#endif /* _NGX_CORE_H_INCLUDED_ */
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index 75aaef132..42030eb26 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -24,8 +24,10 @@
#define NGX_HUNK_FLUSH 0x0100
/* last hunk */
#define NGX_HUNK_LAST 0x0200
+#if 0
/* can be used with NGX_HUNK_LAST only */
-#define NGX_HUNK_SHUTDOWN 0x0400
+#define NGX_HUNK_SHUTDOWN 0x0400 /
+#endif
#define NGX_HUNK_RECYCLED 0x0800
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index 193308452..ea255ba2f 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -22,6 +22,8 @@ typedef struct {
#define ngx_strncmp strncmp
#define ngx_strcmp strcmp
+#define ngx_strlen strlen
+
#define ngx_snprintf _snprintf
#define ngx_vsnprintf _vsnprintf
@@ -33,6 +35,8 @@ typedef struct {
#define ngx_strncmp strncmp
#define ngx_strcmp strcmp
+#define ngx_strlen strlen
+
#define ngx_snprintf snprintf
#define ngx_vsnprintf vsnprintf