diff --git a/common/Make.rules b/common/Make.rules index 890ff96fd..4e4167c7d 100644 --- a/common/Make.rules +++ b/common/Make.rules @@ -48,7 +48,7 @@ BUILDDIR=$(shell if [ -d "${TESTBUILDDIR}" ] ; then \ echo "/tmp/${NAME}" ; \ fi ;) endif -RPMHOSTVENDOR=$(shell rpm --eval "%{_host_vendor}") +RPMHOSTVENDOR=$(shell which rpm && rpm --eval "%{_host_vendor}") ifndef DISTRO DISTRO=$(shell if [ -f /etc/slackware-version ] ; then \ echo slackware ; \ diff --git a/parser/parser_main.c b/parser/parser_main.c index 7615dc96e..470322cb9 100644 --- a/parser/parser_main.c +++ b/parser/parser_main.c @@ -34,6 +34,8 @@ #include #include +#include +#include #include "parser.h" #include "parser_version.h" diff --git a/parser/parser_yacc.y b/parser/parser_yacc.y index 280d4667e..01d4ec109 100644 --- a/parser/parser_yacc.y +++ b/parser/parser_yacc.y @@ -412,7 +412,7 @@ flagvals: flagval flagval: TOK_FLAG_ID { - struct flagval fv = {0, 0, 0}; + struct flagval fv = { 0, 0, 0, 0 }; if (strcmp($1, "debug") == 0) { yyerror(_("Profile flag 'debug' is no longer valid.")); } else if (strcmp($1, "complain") == 0) {