From 2444eac6cea9594f048871c5cf3dcf31749fde18 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Tue, 11 Nov 2025 09:52:42 +0800 Subject: [PATCH] declare use_send_zc field anyway --- src/sf_global.c | 5 +---- src/sf_types.h | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/sf_global.c b/src/sf_global.c index 686d110..1933fb4 100644 --- a/src/sf_global.c +++ b/src/sf_global.c @@ -47,10 +47,7 @@ SFGlobalVariables g_sf_global_vars = { {0, 0}, NULL, {NULL, 0} }; -SFContext g_sf_context = {{'\0'}, NULL, 0, false, false, -#if IOEVENT_USE_URING - false, -#endif +SFContext g_sf_context = {{'\0'}, NULL, 0, false, false, false, sf_address_family_auto, {{AF_UNSPEC, {{true, fc_comm_type_sock}, {false, fc_comm_type_rdma}}}, {AF_UNSPEC, {{true, fc_comm_type_sock}, {false, fc_comm_type_rdma}}}}, diff --git a/src/sf_types.h b/src/sf_types.h index b4491b4..005264e 100644 --- a/src/sf_types.h +++ b/src/sf_types.h @@ -182,9 +182,7 @@ typedef struct sf_context { bool is_client; //since v1.2.5 bool use_io_uring; //since v1.2.9 -#if IOEVENT_USE_URING bool use_send_zc; //since v1.2.9 -#endif SFAddressFamily address_family; SFAddressFamilyHandler handlers[SF_ADDRESS_FAMILY_COUNT];