Module Name:    src
Committed By:   jakllsch
Date:           Thu Aug  4 00:57:33 UTC 2011

Modified Files:
        src/sys/dev/pci: machfb.c

Log Message:
Fix machfb build on ports not based on powerpc or sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sys/dev/pci/machfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/machfb.c
diff -u src/sys/dev/pci/machfb.c:1.70 src/sys/dev/pci/machfb.c:1.71
--- src/sys/dev/pci/machfb.c:1.70	Wed Aug  3 05:27:08 2011
+++ src/sys/dev/pci/machfb.c	Thu Aug  4 00:57:33 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: machfb.c,v 1.70 2011/08/03 05:27:08 macallan Exp $	*/
+/*	$NetBSD: machfb.c,v 1.71 2011/08/04 00:57:33 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 2002 Bang Jun-Young
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 __KERNEL_RCSID(0, 
-	"$NetBSD: machfb.c,v 1.70 2011/08/03 05:27:08 macallan Exp $");
+	"$NetBSD: machfb.c,v 1.71 2011/08/04 00:57:33 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -502,7 +502,9 @@
 	struct pci_attach_args *pa = aux;
 	struct rasops_info *ri;
 	prop_data_t edid_data;
+#if defined(__sparc__) || defined(__powerpc__)
 	const struct videomode *mode = NULL;
+#endif
 	char devinfo[256];
 	int bar, id, expected_id;
 	int is_gx;

Reply via email to