From: Roy Marples Date: Wed, 23 Apr 2014 20:29:03 +0000 (+0000) Subject: Fix compat/queue.h X-Git-Tag: v6.4.0~104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e2177c64e4bb45563f3d9c56cbea05ab47ece10;p=thirdparty%2Fdhcpcd.git Fix compat/queue.h --- diff --git a/compat/queue.h b/compat/queue.h index e4da05f6..d9a78295 100644 --- a/compat/queue.h +++ b/compat/queue.h @@ -33,9 +33,15 @@ #ifndef COMPAT_QUEUE_H #define COMPAT_QUEUE_H + +#include /* * Tail queue definitions. */ +#ifndef TAILQ_END +#define TAILQ_END(head) (NULL) +#endif + #ifndef TAILQ_HEAD #define _TAILQ_HEAD(name, type, qual) \ struct name { \ @@ -58,7 +64,6 @@ struct { \ * Tail queue access methods. */ #define TAILQ_FIRST(head) ((head)->tqh_first) -#define TAILQ_END(head) (NULL) #define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) #define TAILQ_LAST(head, headname) \ (*(((struct headname *)((head)->tqh_last))->tqh_last)) diff --git a/dhcpcd.c b/dhcpcd.c index 847a3136..8c673997 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -30,6 +30,7 @@ const char dhcpcd_copyright[] = "Copyright (c) 2006-2014 Roy Marples"; #define _WITH_DPRINTF /* Stop FreeBSD bitching */ #include +#include #include #include #include