mirror of
https://github.com/nginx/nginx.git
synced 2026-09-06 21:38:27 +00:00
Removed unused FreeBSD-specific definitions in ngx_posix_config.h.
This commit is contained in:
parent
afad219175
commit
e3baa90da9
1 changed files with 0 additions and 20 deletions
|
|
@ -145,26 +145,6 @@ typedef struct aiocb ngx_aiocb_t;
|
|||
#define ngx_debug_init()
|
||||
|
||||
|
||||
#if (__FreeBSD__) && (__FreeBSD_version < 400017)
|
||||
|
||||
#include <sys/param.h> /* ALIGN() */
|
||||
|
||||
/*
|
||||
* FreeBSD 3.x has no CMSG_SPACE() and CMSG_LEN() and has the broken CMSG_DATA()
|
||||
*/
|
||||
|
||||
#undef CMSG_SPACE
|
||||
#define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l))
|
||||
|
||||
#undef CMSG_LEN
|
||||
#define CMSG_LEN(l) (ALIGN(sizeof(struct cmsghdr)) + (l))
|
||||
|
||||
#undef CMSG_DATA
|
||||
#define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr)))
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
extern char **environ;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue