diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2020-03-30 08:35:23 +0000 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2020-03-30 08:35:23 +0000 |
commit | 948b7d0f40f04a96d69e69b13562865fb1749325 (patch) | |
tree | 1742d152d48e54c96a5caf9f8f830777aa22e6aa /security/fragroute/files/patch-pkt.h | |
parent | print/panda: Unbreak build on FreeBSD >= 12.1 (diff) |
net/fragroute: Unbreak on CURRENT
fragtest.c:102:39: warning: implicit declaration of function 'TAILQ_END' is invalid in C99 [-Wimplicit-function-declaration]
for (pkt = TAILQ_FIRST(pktq); pkt != TAILQ_END(pktq); pkt = next) {
^
It was accidentally using sys/queue.h (which no longer has TAILQ_END)
instead of the bundled version. Make this explicit and add a
definition for TAILQ_END to avoid adding more patches.
Notes
Notes:
svn path=/head/; revision=529869
Diffstat (limited to 'security/fragroute/files/patch-pkt.h')
-rw-r--r-- | security/fragroute/files/patch-pkt.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/security/fragroute/files/patch-pkt.h b/security/fragroute/files/patch-pkt.h new file mode 100644 index 000000000000..3b818108f263 --- /dev/null +++ b/security/fragroute/files/patch-pkt.h @@ -0,0 +1,18 @@ +--- pkt.h.orig 2002-04-07 22:55:20 UTC ++++ pkt.h +@@ -9,10 +9,14 @@ + #ifndef PKT_H + #define PKT_H + ++#include <sys/queue.h> + #include <sys/time.h> + #include <dnet.h> + #include <event.h> +-#include "queue.h" ++ ++#ifndef TAILQ_END ++#define TAILQ_END(head) NULL ++#endif + + #define PKT_BUF_LEN (ETH_HDR_LEN + ETH_MTU) + #define PKT_BUF_ALIGN 2 |