From owner-p4-projects@FreeBSD.ORG Sat Apr 29 23:18:30 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id ACFCF16A404; Sat, 29 Apr 2006 23:18:30 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 873D716A401 for ; Sat, 29 Apr 2006 23:18:30 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5297843D45 for ; Sat, 29 Apr 2006 23:18:30 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3TNIUvq004379 for ; Sat, 29 Apr 2006 23:18:30 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3TNIUhJ004373 for perforce@freebsd.org; Sat, 29 Apr 2006 23:18:30 GMT (envelope-from jb@freebsd.org) Date: Sat, 29 Apr 2006 23:18:30 GMT Message-Id: <200604292318.k3TNIUhJ004373@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 96379 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 23:18:30 -0000 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}