Welcome! Log In Create A New Profile

Advanced

[nginx] Removed unused FreeBSD-specific definitions in ngx_posix_config.h.

Sergey Kandaurov
November 28, 2017 06:20AM
details: http://hg.nginx.org/nginx/rev/fc0d06224eda
branches:
changeset: 7163:fc0d06224eda
user: Sergey Kandaurov <pluknet@nginx.com>
date: Tue Nov 28 13:09:54 2017 +0300
description:
Removed unused FreeBSD-specific definitions in ngx_posix_config.h.

diffstat:

src/os/unix/ngx_posix_config.h | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)

diffs (30 lines):

diff -r 8b84d60ef13d -r fc0d06224eda src/os/unix/ngx_posix_config.h
--- a/src/os/unix/ngx_posix_config.h Tue Nov 28 12:00:24 2017 +0300
+++ b/src/os/unix/ngx_posix_config.h Tue Nov 28 13:09:54 2017 +0300
@@ -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;


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Removed unused FreeBSD-specific definitions in ngx_posix_config.h.

Sergey Kandaurov 572 November 28, 2017 06:20AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready