--- src/listen.c.orig	2005-10-23 15:31:46.000000000 +1000
+++ src/listen.c	2013-09-23 22:29:29.000000000 +1000
@@ -44,6 +44,7 @@ static const char id[]="$Id: listen.c,v 
 #include <netdb.h>
 #include <arpa/inet.h>
 #include <string.h>
+#include <stdio.h>
 #include "libut/ut_internal.h"
 
 extern UT_loop_global_type UT_loop_global;
@@ -107,7 +108,7 @@ int UT_accept_cb( int fd, char *name, in
     memset(&sockaddr,0,len);
     if ( (fd2 = accept(fd, (struct sockaddr*)&sockaddr, &len)) == -1) {
         UT_LOG(Error, "Socket accept failed: %s", strerror(errno));
-        return;  
+        return -1;  
     }
 
     /* Use non-blocking I/O. */
@@ -131,6 +132,7 @@ int UT_accept_cb( int fd, char *name, in
     /* Notify application of the new connection by invoking the callback. */
     flags4 = flags3 | UTFD_IS_NEWACCEPT;
     (cbdata->cb.fdcb)(fd2, name, flags4, cbdata->data);
+    return 0;
 }
 
 /*******************************************************************************
