Sergey Kandaurov
January 18, 2019 05:24AM
> 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.

--
Sergey Kandaurov

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

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

Sergey Kandaurov 95 January 09, 2019 06:54AM

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

Sepherosa Ziehau 56 January 17, 2019 12:46AM

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

Sergey Kandaurov 60 January 17, 2019 05:30AM

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

Maxim Dounin 60 January 17, 2019 08:24AM

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

Sergey Kandaurov 67 January 17, 2019 10:20AM

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

Sepherosa Ziehau 52 January 18, 2019 02:40AM

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

Sergey Kandaurov 59 January 18, 2019 05:24AM

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

Sepherosa Ziehau 54 January 23, 2019 09:06PM

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

Maxim Dounin 60 January 22, 2019 09:56AM

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

Sepherosa Ziehau 58 January 23, 2019 09:10PM

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

Maxim Dounin 62 January 24, 2019 10:00AM

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

Sepherosa Ziehau 57 January 28, 2019 04:08AM

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

Sergey Kandaurov 63 January 28, 2019 12:34PM

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

Sepherosa Ziehau 68 January 29, 2019 10:18PM



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

Online Users

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