File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 14
14
+----------------------------------------------------------------------+
15
15
*/
16
16
17
- #ifndef SWOOLE_SRC_SWOOLE_IOURING_H
18
- #define SWOOLE_SRC_SWOOLE_IOURING_H
17
+ #pragma once
19
18
20
19
#include " swoole_coroutine.h"
21
20
22
21
#ifdef SW_USE_IOURING
23
22
#include < liburing.h>
24
23
25
- #ifdef HAVE_IOURING_FUTEX
26
- #ifndef FUTEX2_SIZE_U32
27
- #define FUTEX2_SIZE_U32 0x02
28
- #endif
29
- #endif
30
-
31
24
using swoole::Coroutine;
32
25
33
26
enum swIouringFlag {
@@ -99,4 +92,3 @@ class Iouring {
99
92
};
100
93
}; // namespace swoole
101
94
#endif
102
- #endif
Original file line number Diff line number Diff line change 19
19
20
20
#include " swoole_iouring.h"
21
21
22
+ #ifdef HAVE_IOURING_FUTEX
23
+ #ifndef FUTEX2_SIZE_U32
24
+ #define FUTEX2_SIZE_U32 0x02
25
+ #endif
26
+ #include < linux/futex.h>
27
+ #endif
28
+
22
29
#ifdef SW_USE_IOURING
23
30
using swoole::Coroutine;
24
31
You can’t perform that action at this time.
0 commit comments