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 428 January 07, 2019 10:38PM

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

Sergey Kandaurov 256 January 09, 2019 06:54AM

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

Sepherosa Ziehau 143 January 17, 2019 12:46AM

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

Sergey Kandaurov 238 January 17, 2019 05:30AM

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

Maxim Dounin 175 January 17, 2019 08:24AM

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

Sergey Kandaurov 181 January 17, 2019 10:20AM

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

Sepherosa Ziehau 170 January 18, 2019 02:40AM

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

Sergey Kandaurov 179 January 18, 2019 05:24AM

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

Sepherosa Ziehau 176 January 23, 2019 09:06PM

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

Maxim Dounin 174 January 22, 2019 09:56AM

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

Sepherosa Ziehau 182 January 23, 2019 09:10PM

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

Maxim Dounin 183 January 24, 2019 10:00AM

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

Sepherosa Ziehau 174 January 28, 2019 04:08AM

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

Sergey Kandaurov 180 January 28, 2019 12:34PM

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

Sepherosa Ziehau 194 January 29, 2019 10:18PM



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

Online Users

Guests: 276
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