Skip to content

Commit e1d0c6d

Browse files
ammarfaizi2axboe
authored andcommitted
io_uring: uapi: Add extern "C" in io_uring.h for liburing
Make it easy for liburing to integrate uapi header with the kernel. Previously, when this header changes, the liburing side can't directly copy this header file due to some small differences. Sync them. Link: https://lore.kernel.org/io-uring/f1feef16-6ea2-0653-238f-4aaee35060b6@kernel.dk Cc: Bart Van Assche <bvanassche@acm.org> Cc: Dylan Yudaken <dylany@fb.com> Cc: Facebook Kernel Team <kernel-team@fb.com> Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent c2fa700 commit e1d0c6d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

include/uapi/linux/io_uring.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#include <linux/types.h>
1313
#include <linux/time_types.h>
1414

15+
#ifdef __cplusplus
16+
extern "C" {
17+
#endif
18+
1519
/*
1620
* IO submission data structure (Submission Queue Entry)
1721
*/
@@ -661,4 +665,8 @@ struct io_uring_recvmsg_out {
661665
__u32 flags;
662666
};
663667

668+
#ifdef __cplusplus
669+
}
670+
#endif
671+
664672
#endif

0 commit comments

Comments
 (0)