[PATCH 16/16] pcapng: add define guards to avoid multi-inclusion

Weiguo Li liwg06 at foxmail.com
Sun Feb 6 04:58:46 CET 2022


Supplement define guards to prevent multiple inclusion.

Signed-off-by: Weiguo Li <liwg06 at foxmail.com>
---
 lib/pcapng/pcapng_proto.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/pcapng/pcapng_proto.h b/lib/pcapng/pcapng_proto.h
index 47161d8a12..2e0c0e8cfd 100644
--- a/lib/pcapng/pcapng_proto.h
+++ b/lib/pcapng/pcapng_proto.h
@@ -6,6 +6,9 @@
  * See: https://github.com/pcapng/pcapng/ for the file format.
  */
 
+#ifndef _PCAPNG_PROTO_H_
+#define _PCAPNG_PROTO_H_
+
 enum pcapng_block_types {
 	PCAPNG_INTERFACE_BLOCK		= 1,
 	PCAPNG_PACKET_BLOCK,		/* Obsolete */
@@ -127,3 +130,5 @@ enum pcapng_isb_options {
 	PCAPNG_ISB_OSDROP,
 	PCAPNG_ISB_USRDELIV,
 };
+
+#endif /* _PCAPNG_PROTO_H_ */
-- 
2.25.1



More information about the dev mailing list