From 3685a1f74204ceaa2c16c9d9954683768a2c5599 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 4 May 2012 07:33:10 +0200 Subject: [PATCH] configure: don't check for SLIST_* stuff: we don't use them --- configure.ac | 10 +--------- src/compat.h | 45 --------------------------------------------- 2 files changed, 1 insertion(+), 54 deletions(-) diff --git a/configure.ac b/configure.ac index 650f5aa3..7737fb8e 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]]) +TAILQ_EMPTY],[],[],[[@%:@include ]]) # On some systems, some ioctl are not declared AC_CHECK_DECLS([ diff --git a/src/compat.h b/src/compat.h index f05b6a51..6da5615c 100644 --- a/src/compat.h +++ b/src/compat.h @@ -48,51 +48,6 @@ #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 -- 2.39.5