svn commit: r246380 - projects/cider/usr.bin/make

John Baldwin jhb at freebsd.org
Wed Feb 6 16:33:02 UTC 2013


On Wednesday, February 06, 2013 8:41:32 am Alfred Perlstein wrote:
> On 2/5/13 8:40 PM, Eitan Adler wrote:
> > On 5 February 2013 23:36, Alfred Perlstein <alfred at freebsd.org> wrote:
> >> Author: alfred
> >> Date: Wed Feb  6 04:36:57 2013
> >> New Revision: 246380
> >> URL: http://svnweb.freebsd.org/changeset/base/246380
> >>
> >> Log:
> >>    Add headers needed to compile on OS X 10.7.5.
> > Please make sure to annotate that these headers are required on
> > !FreeBSD otherwise they may be removed if someone does a "include what
> > you use" run.
> >
> >
> Is there an existing way of doing this?
> 
> I'm not sure if I should just do
> #ifndef __FreeBSD__
> or something else?

In this particular case I would be inclined to instead do something like:

Makefile:
.if defined(BOOTSTRAPPING_OSX)
CFLAGS+= -include osx_bootstrap.h
.endif

osx_bootstrap.h:
#include <sys/types.h>
#include <stdint.h>

Doesn't hurt to just include those while building all of make I think and
that is a less invasive change.

-- 
John Baldwin


More information about the svn-src-projects mailing list