fs/io/FileOutputStream: make linkat() mandatory on Linux

This commit is contained in:
Max Kellermann
2018-08-21 18:59:03 +02:00
parent d11e1d5880
commit 0642ce4795
3 changed files with 7 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ class FileOutputStream final : public OutputStream {
FileDescriptor fd = FileDescriptor::Undefined();
#endif
#ifdef HAVE_LINKAT
#ifdef __linux__
/**
* Was O_TMPFILE used? If yes, then linkat() must be used to
* create a link to this file.