$OpenBSD: patch-modules_lcr_lcr_mod_c,v 1.2 2015/11/20 10:09:52 sthen Exp $
--- modules/lcr/lcr_mod.c.orig	Fri Oct  2 15:35:19 2015
+++ modules/lcr/lcr_mod.c	Wed Oct 21 00:44:53 2015
@@ -55,6 +55,9 @@
  * least cost rules). Each such instance has its own LCR identifier.
  */
 
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -2049,10 +2052,11 @@ static int generate_uris(struct sip_msg* _m, char *r_u
 {
     int_str gw_uri_val;
     struct usr_avp *gu_avp;
-    str scheme, prefix, hostname, port, params, transport, addr_str,
-	tmp_tag;
+    str scheme = {NULL, 0}, prefix = {NULL, 0}, hostname = {NULL, 0},
+	port = {NULL, 0}, params = {NULL, 0}, transport = {NULL, 0},
+	addr_str, tmp_tag = {NULL, 0};
     char *at;
-    unsigned int strip;
+    unsigned int strip = 0;
     
     gu_avp = search_first_avp(gw_uri_avp_type, gw_uri_avp, &gw_uri_val, 0);
 
