comparison src/os/unix/ngx_posix_config.h @ 7163:fc0d06224eda

Removed unused FreeBSD-specific definitions in ngx_posix_config.h.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 28 Nov 2017 13:09:54 +0300
parents 9fd68d5009e3
children 93bbb9fbf30d
comparison
equal deleted inserted replaced
7162:8b84d60ef13d 7163:fc0d06224eda
143 #define NGX_LISTEN_BACKLOG 511 143 #define NGX_LISTEN_BACKLOG 511
144 144
145 #define ngx_debug_init() 145 #define ngx_debug_init()
146 146
147 147
148 #if (__FreeBSD__) && (__FreeBSD_version < 400017)
149
150 #include <sys/param.h> /* ALIGN() */
151
152 /*
153 * FreeBSD 3.x has no CMSG_SPACE() and CMSG_LEN() and has the broken CMSG_DATA()
154 */
155
156 #undef CMSG_SPACE
157 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
158
159 #undef CMSG_LEN
160 #define CMSG_LEN(l) (ALIGN(sizeof(struct cmsghdr)) + (l))
161
162 #undef CMSG_DATA
163 #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr)))
164
165 #endif
166
167
168 extern char **environ; 148 extern char **environ;
169 149
170 150
171 #endif /* _NGX_POSIX_CONFIG_H_INCLUDED_ */ 151 #endif /* _NGX_POSIX_CONFIG_H_INCLUDED_ */