diff --git a/src/util/lists.h b/src/util/lists.h index f8ab1e88d..0612c509d 100644 --- a/src/util/lists.h +++ b/src/util/lists.h @@ -132,8 +132,8 @@ struct xlist_head { #define INIT_LIST_OF(element_T, x) LIST_OF(element_T) x = { D_LIST_HEAD(x) } #ifdef HAVE_TYPEOF -#define list_typeof(x) typeof(x) -#define list_typeof2(x) typeof(x) +#define list_typeof(x) __typeof__(x) +#define list_typeof2(x) __typeof__(x) #else #define list_typeof(x) struct xlist_head * #define list_typeof2(x) void *