aboutsummaryrefslogtreecommitdiff
path: root/x11-servers/XFree86-4-Server/files/patch-alpha_video.c
blob: 741664e27713d7c93837c2be1f4aad680eadcca3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c.orig	Tue Oct 29 15:19:13 2002
+++ programs/Xserver/hw/xfree86/os-support/bsd/alpha_video.c	Tue Mar  4 16:28:04 2003
@@ -33,7 +33,10 @@
 #include <sys/param.h>
 #ifndef __NetBSD__
 #  include <sys/sysctl.h>
-# else
+#  ifdef __FreeBSD__
+#     include <machine/sysarch.h>
+#  endif
+#else
 #  include <machine/sysarch.h>
 #endif
 #include "xf86Axp.h"
@@ -51,6 +54,8 @@
 #define MAP_FAILED ((caddr_t)-1)
 #endif
 
+axpDevice bsdGetAXP(void);
+
 #ifndef __NetBSD__
 extern unsigned long dense_base(void);
 
@@ -260,10 +265,10 @@
 #endif /* __OpenBSD__ */
 	   
            xf86ErrorF("\tlinear framebuffer access unavailable\n");
+#endif
 	}
 	useDevMem = FALSE;
 	return;
-#endif
 }
 
 void