libuv/include/uv
Joran Dirk Greef 9b12e023ab unix: fix UV_FS_O_DIRECT definition on Linux
According to http://man7.org/linux/man-pages/man2/open.2.html, the
O_DIRECT flag is Linux-specific. One must define _GNU_SOURCE to obtain
the correct definition.

However, defining _GNU_SOURCE in the headers is unhygienic and affects
the libuv consumer.

On Linux, we now define UV_FS_O_DIRECT explicitly according to
architecture, only falling back to O_DIRECT if defined, or 0 if not.

Fixes: https://github.com/libuv/libuv/issues/2420
PR-URL: https://github.com/libuv/libuv/pull/2441
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2019-09-06 22:50:27 +02:00
..
aix.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
android-ifaddrs.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
bsd.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
darwin.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
errno.h include: map EILSEQ error code 2019-08-26 10:13:37 -04:00
linux.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
os390.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
posix.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
stdint-msvc2008.h win: move stdint-msvc2008.h to include/uv/ 2018-06-14 18:40:09 +02:00
sunos.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
threadpool.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
tree.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
unix.h unix: fix UV_FS_O_DIRECT definition on Linux 2019-09-06 22:50:27 +02:00
version.h Now working on version 1.31.1 2019-08-09 10:59:08 -04:00
win.h win: add UV_FS_O_FILEMAP 2019-07-16 18:20:10 +02:00