PERFORCE change 96379 for review

John Birrell jb at FreeBSD.org
Sat Apr 29 23:18:30 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=96379

Change 96379 by jb at 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}
 


More information about the p4-projects mailing list