Skip to content

Commit

Permalink
Fix O_DIRECT in defined (#416)
Browse files Browse the repository at this point in the history
There was a minor typo here. This fixes that

xref: #404 (comment)

Authors:
  - https://github.com/jakirkham

Approvers:
  - Mads R. B. Kristensen (https://github.com/madsbk)

URL: #416
  • Loading branch information
jakirkham committed Jul 24, 2024
1 parent f0725dc commit ec5e568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/include/kvikio/file_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ inline int open_fd_parse_flags(const std::string& flags, bool o_direct)
}
file_flags |= O_CLOEXEC;
if (o_direct) {
#if defined(O_DIRECTT)
#if defined(O_DIRECT)
file_flags |= O_DIRECT;
#else
throw std::invalid_argument("'o_direct' flag unsupported on this platform");
Expand Down

0 comments on commit ec5e568

Please sign in to comment.