]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compat/queue.h
authorRoy Marples <roy@marples.name>
Wed, 23 Apr 2014 20:29:03 +0000 (20:29 +0000)
committerRoy Marples <roy@marples.name>
Wed, 23 Apr 2014 20:29:03 +0000 (20:29 +0000)
compat/queue.h
dhcpcd.c

index e4da05f6747b46b864398007abb45194837403d5..d9a78295189bcd1ab2467dee8d6af1581dcc362e 100644 (file)
 
 #ifndef COMPAT_QUEUE_H
 #define COMPAT_QUEUE_H
+
+#include <sys/queue.h>
 /*
  * 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))
index 847a3136cb82c096a991a14725a1910e3efb8675..8c6739970579110d73db3fa2c921bd76f098fd9b 100644 (file)
--- 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 <sys/file.h>
+#include <sys/queue.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/time.h>