Skip to content

Commit

Permalink
Fix last commit which was broken on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Nov 21, 2024
1 parent 27d96a8 commit 50c7364
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmake/QuickCppLibBootstrap.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ foreach(item ${CMAKE_MODULE_PATH})
set(quickcpplib_done ON)
endif()
endforeach()
if(NOT quickcpplib_done)
if(NOT quickcpplib_done AND quickcpplib_DIR)
find_package(quickcpplib QUIET CONFIG)
if(quickcpplib_FOUND)
if(DEFINED quickcpplib_CMAKELIB_DIR AND DEFINED quickcpplib_SCRIPTS_DIR)
Expand Down
6 changes: 3 additions & 3 deletions include/llfio/revision.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define LLFIO_PREVIOUS_COMMIT_REF 931ad7b294ce852e577076630c445e2e930dae17
#define LLFIO_PREVIOUS_COMMIT_DATE "2024-11-18 14:44:33 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE 931ad7b2
#define LLFIO_PREVIOUS_COMMIT_REF 27d96a8af49cb169c7cd03638b2e0365dc1c1014
#define LLFIO_PREVIOUS_COMMIT_DATE "2024-11-19 15:12:17 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE 27d96a8a
2 changes: 1 addition & 1 deletion include/llfio/v2.0/detail/impl/posix/file_handle.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ result<file_handle::extent_type> file_handle::zero(file_handle::extent_pair exte
if(-1 != fallocate(_v.fd, 0x02 /*FALLOC_FL_PUNCH_HOLE*/ | 0x01 /*FALLOC_FL_KEEP_SIZE*/, extent.offset, extent.length))
{
// Success
return extent;
return extent.length;
}
// The filing system may not support trim
if(EOPNOTSUPP != errno)
Expand Down

0 comments on commit 50c7364

Please sign in to comment.