Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 1997 22:42:45 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, imp@village.org
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.bin/make main.c var.c
Message-ID:  <199709291242.WAA01186@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>: <stdlib.h> is already included by make.h which is included by almost
>: everything (blech).
>
>Then I'm confused as to why I was getting warnings about getenv not
>being defined on Digital Unix when I tried to compile make there
>before I made the change...

The #include of <stdlib.h> is protected by `#if __STDC__' and Digital
Unix apparently doesn't support Standard C by default.

Including <stdlib.h> unconditionally increases the breakage of support
for nonstandard C.  It has already been broken in rev.1.10 of main.c
by removing the apparently-redundant nested extern declaration of
getenv().  var.c has always been broken (getenv is not declared and
doesn't return int).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709291242.WAA01186>