Fixing build on Solaris.

This commit is contained in:
Max Romanov
2017-11-02 15:32:46 +03:00
parent eb5c49ead9
commit ec411569e7
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ struct nxt_port_handlers_s {
#define nxt_port_handler_idx(name) \
( &((nxt_port_handlers_t *) 0)->name - (nxt_port_handler_t *) 0)
( offsetof(nxt_port_handlers_t, name) / sizeof(nxt_port_handler_t) )
typedef enum {

View File

@@ -572,7 +572,7 @@ nxt_port_lvlhsh_frag_alloc(void *ctx, size_t size)
static void
nxt_port_lvlhsh_frag_free(void *ctx, void *p)
{
return nxt_mp_free(ctx, p);
nxt_mp_free(ctx, p);
}