--- src/var_shl.c.orig	2005-10-24 11:40:32.000000000 +1000
+++ src/var_shl.c	2013-09-23 23:48:22.000000000 +1000
@@ -28,6 +28,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY 
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+#include <stdio.h>
 #include <string.h>
 #include "libut/ut_internal.h"
 
@@ -182,6 +183,7 @@ int UT_var_usage(int argc,char*argv[]) {
     UT_shlf(" var                    -- show all vars\n");
     UT_shlf(" var varname            -- show named var\n");
     UT_shlf(" var varname [=] newval -- set var to new value\n");
+    return 0;
 }
 
 void UT_var_shl_init() {
