gazelle/0294-fix-build-error-in-2003SP4.patch
yinbin6 d766b3461a sync patch from openEuler
(cherry picked from commit 001f727170cf85ebd9a52d4e8020f6c168fa5269)
2024-11-27 20:40:31 +08:00

28 lines
696 B
Diff

From 83b65f8da77f586cc58278944f840016817ba9f7 Mon Sep 17 00:00:00 2001
From: yangchen <yangchen145@huawei.com>
Date: Sat, 23 Nov 2024 16:14:25 +0800
Subject: [PATCH] fix build error in 2003SP4
---
src/lstack/api/lstack_wrap.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lstack/api/lstack_wrap.c b/src/lstack/api/lstack_wrap.c
index 7e724cd..d22847a 100644
--- a/src/lstack/api/lstack_wrap.c
+++ b/src/lstack/api/lstack_wrap.c
@@ -31,6 +31,10 @@
#include "lstack_rtw_api.h"
#include "lstack_dummy_api.h"
+#ifndef SOL_XDP
+#define SOL_XDP 283 /* same as define in bits/socket.h */
+#endif
+
static posix_api_t g_wrap_api_value;
static posix_api_t *g_wrap_api;
--
2.33.0