From debb502ff3898606a827ae96c76225af465fd77e Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 12 Jan 2018 21:41:51 -0800 Subject: [PATCH] Fix compilation mistakes from 338ee4bd7bb44 in TiVo. --- minidlna.c | 2 +- tivo_commands.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/minidlna.c b/minidlna.c index 8528c16..496e24f 100644 --- a/minidlna.c +++ b/minidlna.c @@ -1212,7 +1212,7 @@ main(int argc, char **argv) if(sbeacon < 0) DPRINTF(E_FATAL, L_GENERAL, "Failed to open sockets for sending Tivo beacon notify " "messages. EXITING\n"); - beaconev = { .fd = sbeacon, .rdwr = EVENT_READ, .process = ProcessTiVoBeacon }; + beaconev = (struct event ){ .fd = sbeacon, .rdwr = EVENT_READ, .process = ProcessTiVoBeacon }; event_module.add(&beaconev); tivo_bcast.sin_family = AF_INET; tivo_bcast.sin_addr.s_addr = htonl(getBcastAddress()); diff --git a/tivo_commands.c b/tivo_commands.c index 61e0a6e..d4ab157 100644 --- a/tivo_commands.c +++ b/tivo_commands.c @@ -24,6 +24,7 @@ #include #include +#include "event.h" #include "tivo_utils.h" #include "upnpglobalvars.h" #include "upnphttp.h"