[PATCH libnetfilter_queue] include: pktbuff.h needs stdbool.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Without #include <stdbool.h>, compilation will fail if pktbuff.h is
included early enough.

Fixes: ffa83b5968b5 ("add mangle functions for IPv4/TCP and IPv4/UDP")
Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx>
---
 include/libnetfilter_queue/pktbuff.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/libnetfilter_queue/pktbuff.h b/include/libnetfilter_queue/pktbuff.h
index a4cc2a1..d3588c7 100644
--- a/include/libnetfilter_queue/pktbuff.h
+++ b/include/libnetfilter_queue/pktbuff.h
@@ -1,6 +1,8 @@
 #ifndef _PKTBUFF_H_
 #define _PKTBUFF_H_
 
+#include <stdbool.h>
+
 struct pkt_buff;
 
 struct pkt_buff *pktb_alloc(int family, void *data, size_t len, size_t extra);
-- 
2.35.8





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux