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"