Welcome! Log In Create A New Profile

Advanced

Re: aio/unix: Use signal.sival which is standard

Sepherosa Ziehau
January 23, 2019 09:06PM
On Fri, Jan 18, 2019 at 6:22 PM Sergey Kandaurov <pluknet@nginx.com> wrote:
>
>
>
> > On 18 Jan 2019, at 10:39, Sepherosa Ziehau <sepherosa@gmail.com> wrote:
> >
> > Hi,
> >
> >> diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h
> >> --- a/src/os/unix/ngx_freebsd_config.h
> >> +++ b/src/os/unix/ngx_freebsd_config.h
> >> @@ -91,6 +91,10 @@
> >> #if (NGX_HAVE_FILE_AIO)
> >> #include <aio.h>
> >> typedef struct aiocb ngx_aiocb_t;
> >> +
> >> +#if (__FreeBSD_version < 700005 && !defined __DragonFly__)
> >> +#define sival_ptr sigval_ptr
> >> +#endif
> >> #endif
> >
> > Will the following code be more straightforward?
> > #if defined(__FreeBSD__) && (__FreeBSD_version < 700005)
> > #define sival_ptr sigval_ptr
> > #endif
>
> This won't work. __FreeBSD__ and__FreeBSD_version
> are defined for DragonFly in src/core/ngx_config.h.

Aha, I see. Thank you.


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

aio/unix: Use signal.sival which is standard

Sepherosa Ziehau 239 January 07, 2019 10:38PM

Re: aio/unix: Use signal.sival which is standard

Sergey Kandaurov 98 January 09, 2019 06:54AM

Re: aio/unix: Use signal.sival which is standard

Sepherosa Ziehau 59 January 17, 2019 12:46AM

Re: aio/unix: Use signal.sival which is standard

Sergey Kandaurov 63 January 17, 2019 05:30AM

Re: aio/unix: Use signal.sival which is standard

Maxim Dounin 63 January 17, 2019 08:24AM

Re: aio/unix: Use signal.sival which is standard

Sergey Kandaurov 70 January 17, 2019 10:20AM

Re: aio/unix: Use signal.sival which is standard

Sepherosa Ziehau 55 January 18, 2019 02:40AM

Re: aio/unix: Use signal.sival which is standard

Sergey Kandaurov 64 January 18, 2019 05:24AM

Re: aio/unix: Use signal.sival which is standard

Sepherosa Ziehau 57 January 23, 2019 09:06PM

Re: aio/unix: Use signal.sival which is standard

Maxim Dounin 63 January 22, 2019 09:56AM

Re: aio/unix: Use signal.sival which is standard

Sepherosa Ziehau 61 January 23, 2019 09:10PM

Re: aio/unix: Use signal.sival which is standard

Maxim Dounin 65 January 24, 2019 10:00AM

Re: aio/unix: Use signal.sival which is standard

Sepherosa Ziehau 61 January 28, 2019 04:08AM

Re: aio/unix: Use signal.sival which is standard

Sergey Kandaurov 67 January 28, 2019 12:34PM

Re: aio/unix: Use signal.sival which is standard

Sepherosa Ziehau 71 January 29, 2019 10:18PM



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

Online Users

Guests: 87
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready