--- src/connect.c.orig	2005-11-07 12:45:58.000000000 +1100
+++ src/connect.c	2013-09-23 18:45:35.000000000 +1000
@@ -44,6 +44,7 @@ static const char id[]="$Id: connect.c,v
 #include <fcntl.h>
 #include <netdb.h>
 #include <stdarg.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include "libut/ut_internal.h"
 
@@ -91,6 +92,7 @@ int UT_nb_connect_cb(int fd, char *name,
     }
 
     UT_mem_free( CBDATA, cbdata, 1);
+    return 0;
 }
 
 /*******************************************************************************
