Date: Sat, 29 Apr 2006 23:18:30 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96379 for review Message-ID: <200604292318.k3TNIUhJ004373@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96379 Change 96379 by jb@jb_freebsd2 on 2006/04/29 23:17:41 When compiling Solaris source code, always define _SOLARIS_C_SOURCE so that the Solaris compatibility definitions in headers like sys/types.h are enabled. A down-side of doing this is that it creates an buildworld issue where bootstrap tools are expected to compile against the installed headers which might not include these compatibility definitions. Work around that by adding the sys tree to the include path. Affected files ... .. //depot/projects/dtrace/src/cddl/Makefile.inc#2 edit .. //depot/projects/dtrace/src/gnu/lib/libdwarf/Makefile#2 edit Differences ... ==== //depot/projects/dtrace/src/cddl/Makefile.inc#2 (text+ko) ==== @@ -2,3 +2,6 @@ OPENSOLARIS_USR_DISTDIR=${.CURDIR}/../../../contrib/opensolaris OPENSOLARIS_SYS_DISTDIR=${.CURDIR}/../../../sys/contrib/opensolaris + +CFLAGS+= -I${.CURDIR}/../../../sys +CFLAGS+= -D_SOLARIS_C_SOURCE ==== //depot/projects/dtrace/src/gnu/lib/libdwarf/Makefile#2 (text+ko) ==== @@ -25,6 +25,7 @@ -I${.CURDIR}/../../../sys/contrib \ -I${OPENSOLARIS_USR_DISTDIR}/head \ -I${OPENSOLARIS_SYS_DISTDIR}/uts/common +CFLAGS+= -D_SOLARIS_C_SOURCE .PATH: ${DWARF_DISTDIR}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604292318.k3TNIUhJ004373>