[LTP] [PATCH v2 1/6] lapi/xfrm.h: Include system XFRM header
Martin Doucha
mdoucha@suse.cz
Mon Jun 1 15:20:46 CEST 2026
Also include <netinet/in.h> first to avoid redefinition issues with
IPv6 data structures.
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
Changes since v1: Replaced guard macro #define with #include <netinet/in.h>
include/lapi/xfrm.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/lapi/xfrm.h b/include/lapi/xfrm.h
index 48503b7ef..4d03cddc9 100644
--- a/include/lapi/xfrm.h
+++ b/include/lapi/xfrm.h
@@ -6,6 +6,9 @@
#ifndef LAPI_XFRM_H__
#define LAPI_XFRM_H__
+#include <netinet/in.h>
+#include <linux/xfrm.h>
+
#ifndef XFRMNLGRP_NONE
# define XFRMNLGRP_NONE 0
#endif
--
2.54.0
More information about the ltp
mailing list