]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
configure: don't check for SLIST_* stuff: we don't use them
authorVincent Bernat <bernat@luffy.cx>
Fri, 4 May 2012 05:33:10 +0000 (07:33 +0200)
committerVincent Bernat <bernat@luffy.cx>
Fri, 4 May 2012 05:33:10 +0000 (07:33 +0200)
configure.ac
src/compat.h

index 650f5aa339afcf7822b130df07a87c0612da0fcf..7737fb8e0ebb60d03e05048ca23c127d2d43b427 100644 (file)
@@ -66,15 +66,7 @@ AC_CHECK_DECLS([
 TAILQ_FIRST,
 TAILQ_NEXT,
 TAILQ_FOREACH,
-TAILQ_EMPTY,
-SLIST_HEAD,
-SLIST_ENTRY,
-SLIST_INIT,
-SLIST_INSERT_HEAD,
-SLIST_FIRST,
-SLIST_NEXT,
-SLIST_REMOVE_HEAD,
-SLIST_EMPTY],[],[],[[@%:@include <sys/queue.h>]])
+TAILQ_EMPTY],[],[],[[@%:@include <sys/queue.h>]])
 
 # On some systems, some ioctl are not declared
 AC_CHECK_DECLS([
index f05b6a513b497a33f176222c2dd156bed5b7fd8e..6da5615c04d84765a6ce92d88affaa6457d504a7 100644 (file)
 #define        TAILQ_EMPTY(head)               ((head)->tqh_first == NULL)
 #endif
 
-#if !HAVE_DECL_SLIST_HEAD
-#define        SLIST_HEAD(name, type)                                          \
-struct name {                                                          \
-       struct type *slh_first; /* first element */                     \
-}
-#endif
-
-#if !HAVE_DECL_SLIST_ENTRY
-#define        SLIST_ENTRY(type)                                               \
-struct {                                                               \
-       struct type *sle_next;  /* next element */                      \
-}
-#endif
-
-#if !HAVE_DECL_SLIST_INIT
-#define        SLIST_INIT(head) do {                                           \
-       (head)->slh_first = NULL;                                       \
-} while (/*CONSTCOND*/0)
-#endif
-
-#if !HAVE_DECL_SLIST_INSERT_HEAD
-#define        SLIST_INSERT_HEAD(head, elm, field) do {                        \
-       (elm)->field.sle_next = (head)->slh_first;                      \
-       (head)->slh_first = (elm);                                      \
-} while (/*CONSTCOND*/0)
-#endif
-
-#if !HAVE_DECL_SLIST_REMOVE_HEAD
-#define        SLIST_REMOVE_HEAD(head, field) do {                             \
-       (head)->slh_first = (head)->slh_first->field.sle_next;          \
-} while (/*CONSTCOND*/0)
-#endif
-
-#if !HAVE_DECL_SLIST_EMPTY
-#define        SLIST_EMPTY(head)       ((head)->slh_first == NULL)
-#endif
-
-#if !HAVE_DECL_SLIST_FIRST
-#define        SLIST_FIRST(head)       ((head)->slh_first)
-#endif
-
-#if !HAVE_DECL_SLIST_NEXT
-#define        SLIST_NEXT(elm, field)  ((elm)->field.sle_next)
-#endif
-
 #if !HAVE_SIOCGIFVLAN
 #define SIOCGIFVLAN 0x8982
 #endif