--- a/minissdpd/openssdpsocket.c
+++ b/minissdpd/openssdpsocket.c
@@ -11,6 +11,7 @@
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <net/if.h>
--- a/minissdpd/ifacewatch.c
+++ b/minissdpd/ifacewatch.c
@@ -130,6 +130,7 @@ ProcessInterfaceWatch(int s, int s_ssdp,
 		/* case RTM_DELLINK: */
 		case RTM_DELADDR:
 			is_del = 1;
+			// fall through
 		case RTM_NEWADDR:
 			/* http://linux-hacks.blogspot.fr/2009/01/sample-code-to-learn-netlink.html */
 			ifa = (struct ifaddrmsg *)NLMSG_DATA(nlhdr);
