mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 08:56:28 -04:00
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.
18 lines
336 B
C
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
|