From f6dbf38e995f6f140e6a2e8036c182be8175b47c Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Wed, 27 Dec 2023 12:50:47 -0800
Subject: [PATCH] upnp: change interface variable name

rpc.h under Windows defines interface as struct, which blows up the
build here. Rename to avoid.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 src/db/plugins/upnp/UpnpDatabasePlugin.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
index 4ba4971ff..baadb53e6 100644
--- a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
+++ b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
@@ -60,13 +60,13 @@ class UpnpDatabase : public Database {
 	UpnpClient_Handle handle;
 	UPnPDeviceDirectory *discovery;
 
-	const char* interface;
+	const char* iface;
 
 public:
 	explicit UpnpDatabase(EventLoop &_event_loop, const ConfigBlock &block) noexcept
 		:Database(upnp_db_plugin),
 		 event_loop(_event_loop),
-		 interface(block.GetBlockValue("interface", nullptr)) {}
+		 iface(block.GetBlockValue("interface", nullptr)) {}
 
 	static DatabasePtr Create(EventLoop &main_event_loop,
 				  EventLoop &io_event_loop,
@@ -142,7 +142,7 @@ UpnpDatabase::Create(EventLoop &, EventLoop &io_event_loop,
 void
 UpnpDatabase::Open()
 {
-	handle = UpnpClientGlobalInit(interface);
+	handle = UpnpClientGlobalInit(iface);
 
 	discovery = new UPnPDeviceDirectory(event_loop, handle);
 	try {