From be7af1fd4f4678b214dc915bc42873f1fad258d5 Mon Sep 17 00:00:00 2001 From: phx Date: Fri, 11 Apr 2008 15:14:08 +0000 Subject: [PATCH] Define -DPCI_VIA_TTYE0 for SRCS.bus and not for SRCS.bsd (macppc and ofppc), to ensure the option is generated when compiling netbsdPci.c. --- x11/Xserver/hw/xfree86/xf86_os/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/x11/Xserver/hw/xfree86/xf86_os/Makefile b/x11/Xserver/hw/xfree86/xf86_os/Makefile index 86ad7d7db1c4..9fb16873665b 100644 --- a/x11/Xserver/hw/xfree86/xf86_os/Makefile +++ b/x11/Xserver/hw/xfree86/xf86_os/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2008/03/29 23:26:15 macallan Exp $ +# $NetBSD: Makefile,v 1.17 2008/04/11 15:14:08 phx Exp $ .include "../../../Makefile.serverlib" @@ -34,7 +34,7 @@ CPPFLAGS.${_FN}+= -DPCVT_SUPPORT -DWSCONS_SUPPORT \ SRCS.bsd+= ppc_video.c bsdResource.c pm_noop.c lnx_agp.c .for _FN in ${SRCS.bsd} CPPFLAGS.${_FN}= -DWSCONS_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC \ - -DUSE_PPC_MMAP -DPCI_VIA_TTYE0 + -DUSE_PPC_MMAP .endfor .endif @@ -89,6 +89,11 @@ SRCS.bus+= ix86Pci.c SRCS.bus+= netbsdPci.c .endif +.if ${MACHINE} == "macppc" || ${MACHINE} == "ofppc" +.for _FN in ${SRCS.bus} +CPPFLAGS.${_FN}= -DPCI_VIA_TTYE0 +.endfor +.endif .PATH: ${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/misc SRCS.misc= xf86_Util.c Delay.c xf86_IlHack.c