Skip to content

Commit a5f13c7

Browse files
committed
Fix typedef errors on platforms with _ASM_GENERIC_INT headers
1 parent 9226c72 commit a5f13c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/CSystem/include/io_uring.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,13 @@ typedef struct __SWIFT_IORING_SQE_FALLBACK_STRUCT swift_io_uring_sqe;
134134
#define IORING_FEAT_RW_ATTR (1U << 16)
135135
#define IORING_FEAT_NO_IOWAIT (1U << 17)
136136

137+
#if !defined(_ASM_GENERIC_INT_LL64_H) && !defined(_ASM_GENERIC_INT_L64_H) && !defined(_UAPI_ASM_GENERIC_INT_LL64_H) && !defined(_UAPI_ASM_GENERIC_INT_L64_H)
137138
typedef uint8_t __u8;
138139
typedef uint16_t __u16;
139140
typedef uint32_t __u32;
140141
typedef uint64_t __u64;
141142
typedef int32_t __s32;
143+
#endif
142144

143145
#ifndef __kernel_rwf_t
144146
typedef int __kernel_rwf_t;

0 commit comments

Comments
 (0)