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
android-ifaddrs.h
bsd.h
darwin.h
errno.h include: map EILSEQ error code 2019-08-26 10:13:37 -04:00
linux.h
os390.h
posix.h
stdint-msvc2008.h
sunos.h
threadpool.h
tree.h
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