Skip to content

Commit 9df9133

Browse files
Merge pull request ClickHouse#78620 from chhetripradeep/pchhetri/bump-liburing-2.9
bump liburing: 2.5 -> 2.9
2 parents 1606726 + 3d7323f commit 9df9133

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

contrib/liburing

Submodule liburing updated 255 files

contrib/liburing-cmake/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ set (LIBURING_CONFIG_HAS_KERNEL_TIMESPEC FALSE)
3333
set (LIBURING_CONFIG_HAS_OPEN_HOW FALSE)
3434
set (LIBURING_CONFIG_HAS_STATX FALSE)
3535
set (LIBURING_CONFIG_HAS_GLIBC_STATX FALSE)
36+
set (LIBURING_CONFIG_HAS_DISCARD_CMD FALSE)
3637

3738
configure_file (compat.h.in ${LIBURING_COMPAT_HEADER})
3839

contrib/liburing-cmake/compat.h.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,14 @@ struct open_how {
4747
#include <sys/stat.h>
4848
#endif
4949

50+
#if !defined(LIBURING_CONFIG_HAS_DISCARD_CMD)
51+
#include <linux/ioctl.h>
52+
53+
#ifndef BLOCK_URING_CMD_DISCARD
54+
#define BLOCK_URING_CMD_DISCARD _IO(0x12, 0)
55+
#endif
56+
#else
57+
#include <linux/blkdev.h>
58+
#endif
59+
5060
#endif

0 commit comments

Comments
 (0)