aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorJoran Dirk Greef <joran@ronomon.com>2019-09-06 22:50:26 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2019-09-06 22:50:27 +0200
commit9b12e023ab1e4e9a9f976d0980f4aa0b351c4be6 (patch)
tree8669772fcedebe31ef9efb78bbfdad08cd227007 /docs/src
parent1f63e287b62c340deba23a0ec23560db0813242e (diff)
downloadlibuv-9b12e023ab1e4e9a9f976d0980f4aa0b351c4be6.tar.gz
libuv-9b12e023ab1e4e9a9f976d0980f4aa0b351c4be6.zip
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>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions