ports/security/fragroute/files/patch-pkt.h
Tobias Kortkamp 948b7d0f40 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.
2020-03-30 08:35:23 +00:00

18 lines
336 B
C

--- 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