From 44213ca5102a8565e2a3ca21c5d445d6fdb850aa Mon Sep 17 00:00:00 2001 From: "roberto@mrspurr" Date: Tue, 7 Jun 2011 20:02:24 +0200 Subject: [PATCH] move msg_control union to end of struct wsgi_request (as suggested by Riccardo Magliocchetti) --- uwsgi.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/uwsgi.h b/uwsgi.h index 9e7c8d7f..a204b773 100644 --- a/uwsgi.h +++ b/uwsgi.h @@ -668,14 +668,6 @@ struct wsgi_request { //iovec struct iovec *hvec; - struct msghdr msg; - union { - struct cmsghdr cmsg; -#ifndef __NetBSD__ - char control [CMSG_SPACE (sizeof (int))]; -#endif - } msg_control; - struct timeval start_of_request; struct timeval end_of_request; @@ -803,6 +795,13 @@ struct wsgi_request { int sigwait; uint8_t signal_received; + struct msghdr msg; + union { + struct cmsghdr cmsg; + char control [CMSG_SPACE (sizeof (int))]; + } msg_control; + + }; struct uwsgi_fmon {