From c36f5e92c572c8eaf77c227bce164b9e98a74a3e Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@systemlinux.org>
Date: Tue, 21 Jul 2009 17:56:02 +0200
Subject: [PATCH] Rename LIST_HEAD to INITIALIZED_LIST_HEAD.

This fixes the following warning on NetBSD:

	In file included from udp_send.c:25:
	list.h:37:1: warning: "LIST_HEAD" redefined
	In file included from /usr/include/net/if.h:84,
			 from udp_send.c:14:
	/usr/include/sys/queue.h:88:1: warning: this is the location of the previous definition
---
 audiod_command.c | 2 +-
 list.h           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/audiod_command.c b/audiod_command.c
index 2eaf26b9..bb916713 100644
--- a/audiod_command.c
+++ b/audiod_command.c
@@ -58,7 +58,7 @@ struct stat_client {
 	struct list_head node;
 };
 
-static LIST_HEAD(client_list);
+static INITIALIZED_LIST_HEAD(client_list);
 static int num_clients;
 
 /** The list of all status items used by para_{server,audiod,gui}. */
diff --git a/list.h b/list.h
index db2e8490..80f36a1b 100644
--- a/list.h
+++ b/list.h
@@ -34,7 +34,7 @@ struct list_head {
 };
 
 /** Define an initialized list head. */
-#define LIST_HEAD(name) struct list_head name = { &(name), &(name) }
+#define INITIALIZED_LIST_HEAD(name) struct list_head name = { &(name), &(name) }
 
 
 /** must be called before using any other list functions */
-- 
2.39.5