From: Roy Marples Date: Tue, 19 Feb 2008 17:43:39 +0000 (+0000) Subject: Fix compile. X-Git-Tag: v3.2.3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76d06e75e83f798f71532fcc1e50da3d344f32ca;p=thirdparty%2Fdhcpcd.git Fix compile. --- diff --git a/configure.c b/configure.c index b5add7fe..e2373558 100644 --- a/configure.c +++ b/configure.c @@ -92,7 +92,7 @@ static int exec_cmd (const char *cmd, const char *args, ...) va_list va; char **argv; int n = 1; - int ret; + int ret = 0; pid_t pid; sigset_t full; sigset_t old; diff --git a/mk/cc.mk b/mk/cc.mk index 4fcdcfcb..a1669716 100644 --- a/mk/cc.mk +++ b/mk/cc.mk @@ -7,7 +7,7 @@ CFLAGS?= -O2 -pipe CSTD?= c99 _CSTD_SH= if test -n "${CSTD}"; then echo "-std=${CSTD}"; else echo ""; fi _CSTD!= ${_CSTD_SH} -CFLAGS+= ${_CSTD}$(shell _CSTD_SH) +CFLAGS+= ${_CSTD}$(shell ${_CSTD_SH}) # GNU Make way of detecting gcc flags we can use check_gcc=$(shell if ${CC} $(1) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \