[PATCH v2 16/16] pcapng: add define guards to avoid multi-inclusion
Weiguo Li
liwg06 at foxmail.com
Wed Feb 9 04:16:13 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..6dc100632a 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