File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
#undef RWF_APPEND
15
15
16
+ #if !defined(_musl_)
16
17
#include < liburing.h>
18
+ #endif
17
19
#include < libaio.h>
20
+ #if !defined(_musl_)
18
21
#include < linux/fs.h>
22
+ #endif
19
23
#include < sys/ioctl.h>
20
24
25
+ #if defined(_musl_)
26
+ #define BLKDISCARD _IO (0x12 ,119 )
27
+ #endif
28
+
21
29
namespace NKikimr {
22
30
namespace NPDisk {
23
31
@@ -380,6 +388,7 @@ class TAsyncIoContextLibaio : public IAsyncIoContext {
380
388
/*
381
389
TAsyncIoOperationLiburing
382
390
*/
391
+ #if !defined(_musl_)
383
392
struct TAsyncIoOperationLiburing : IAsyncIoOperation {
384
393
void * Cookie = nullptr ;
385
394
ICallback *Callback = nullptr ;
@@ -706,6 +715,7 @@ class TAsyncIoContextLiburing : public IAsyncIoContext {
706
715
void OnAsyncIoOperationCompletion (IAsyncIoOperation *) override {
707
716
}
708
717
};
718
+ #endif
709
719
710
720
/*
711
721
CreateAsyncIoContextReal
Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ static constexpr ui64 RWFAppendCheck = (ui64)RWF_APPEND;
13
13
#undef RWF_APPEND
14
14
#endif
15
15
16
+ #if !defined(_musl_)
16
17
#include < linux/fs.h>
18
+ #else
19
+ #include < sys/mount.h>
20
+ #endif
17
21
#include < sys/ioctl.h>
18
22
#include < sys/stat.h>
19
23
#include < sys/types.h>
Original file line number Diff line number Diff line change 11
11
#ifdef _linux_
12
12
#include < libgen.h>
13
13
#include < limits.h>
14
+ #if !defined(_musl_)
14
15
#include < linux/fs.h>
16
+ #else
17
+ #include < sys/mount.h>
18
+ #endif
15
19
#include < linux/nvme_ioctl.h>
16
20
#include < stdlib.h>
17
21
#include < sys/ioctl.h>
You can’t perform that action at this time.
0 commit comments