diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-15 20:00:43 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-15 20:00:43 +0400 |
commit | 85cccfba8d0c33e7f3546e630f67c1a1940c8d1f (patch) | |
tree | c11cd5f18e7de981f9c2f907093379a2fda62a32 /src/core/ngx_config.h | |
parent | dc3b2a78753bdc4c97a0007c872a4f8afd049df4 (diff) |
nginx-0.0.10-2004-09-15-20:00:43 import
Diffstat (limited to 'src/core/ngx_config.h')
-rw-r--r-- | src/core/ngx_config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h index 09fd70eb2..63a42efd1 100644 --- a/src/core/ngx_config.h +++ b/src/core/ngx_config.h @@ -84,11 +84,20 @@ typedef long ngx_flag_t; #define NGX_OFF_T_LEN sizeof("-9223372036854775808") - 1 +#if (SOLARIS) + +/* TODO: auto_conf */ +#define NGX_ALIGN (_MAX_ALIGNMENT - 1) /* platform word */ +#define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */ + +#else /* TODO: auto_conf */ #define NGX_ALIGN (sizeof(unsigned long) - 1) /* platform word */ #define NGX_ALIGN_CAST (unsigned long) /* size of the pointer */ +#endif + #define ngx_align(p) (char *) ((NGX_ALIGN_CAST p + NGX_ALIGN) & ~NGX_ALIGN) |