diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-11-02 15:32:46 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-11-02 15:32:46 +0300 |
commit | ec411569e77fc28a9f6641e567c7689fba9bc942 (patch) | |
tree | e5eb55f2ef7ee87a608f8814e69180613ca2de9b /src/nxt_port.h | |
parent | eb5c49ead9f08c424679069a9c5b99014f76b478 (diff) | |
download | unit-ec411569e77fc28a9f6641e567c7689fba9bc942.tar.gz unit-ec411569e77fc28a9f6641e567c7689fba9bc942.tar.bz2 |
Fixing build on Solaris.
Diffstat (limited to 'src/nxt_port.h')
-rw-r--r-- | src/nxt_port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h index 0d913df5..2c9a1a99 100644 --- a/src/nxt_port.h +++ b/src/nxt_port.h @@ -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 { |