PERFORCE change 95041 for review
John Birrell
jb at FreeBSD.org
Wed Apr 12 02:55:25 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95041
Change 95041 by jb at 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
More information about the p4-projects
mailing list