Date: Wed, 12 Apr 2006 02:55:24 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95041 for review Message-ID: <200604120255.k3C2tO09060384@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95041 Change 95041 by jb@jb_freebsd2 on 2006/04/12 02:55:22 Change the location of the header files which translate the FreeBSD definitions into OpenSolaris ones. It's better to put these in the /usr/src/contrib/opensolaris tree so that they aren't present on a FreeBSD system unless the OpenSolaris code is being used. Then a compiler commands can use: -I${.CURDIR}/../(..)/contrib and the customised OpenSolaris source can use things like: #include "opensolaris/compat/sys/types.h" to get things defined like OpenSolaris would (such as uint_t instead of FreeBSD's u_int_t). Affected files ... .. //depot/projects/dtrace/src/cddl/usr.bin/sgsmsg/Makefile#3 edit Differences ... ==== //depot/projects/dtrace/src/cddl/usr.bin/sgsmsg/Makefile#3 (text+ko) ==== @@ -11,12 +11,13 @@ CFLAGS+= -I${.CURDIR}/../../.. \ + -I${.CURDIR}/../../../contrib \ -I${OPENSOLARIS_USR_DISTDIR}/cmd/sgs/include \ -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ -I${OPENSOLARIS_SYS_DISTDIR}/common .if ${MACHINE_ARCH} == "i386" -CFLAGS+=-I${OPENSOLARIS_SYS_DISTDIR}/uts/intel +CFLAGS+= -I${OPENSOLARIS_SYS_DISTDIR}/uts/intel .endif .PATH: ${OPENSOLARIS_USR_DISTDIR}/cmd/sgs/tools/common
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604120255.k3C2tO09060384>