Index: src/kmk/kmkbuiltin/expr.c =================================================================== --- src/kmk/kmkbuiltin/expr.c.orig +++ src/kmk/kmkbuiltin/expr.c @@ -317,6 +317,8 @@ eval6(PEXPRINSTANCE pThis) return v; } else { error(pThis); + /* dummy return in order to make the build checks happy (this will never be reached) */ + return NULL; } /* NOTREACHED */ } Index: src/kmk/kmkbuiltin/kbuild_protection.c =================================================================== --- src/kmk/kmkbuiltin/kbuild_protection.c.orig +++ src/kmk/kmkbuiltin/kbuild_protection.c @@ -29,6 +29,7 @@ #include "config.h" #include #include +#include #include #include #include