Mercurial > hg > nginx-quic
diff src/core/ngx_config.h @ 427:0d08eabe5c7b
nginx-0.0.10-2004-09-15-20:00:43 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 15 Sep 2004 16:00:43 +0000 |
parents | 69e851f83522 |
children | da8c5707af39 |
line wrap: on
line diff
--- 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)