aboutsummaryrefslogtreecommitdiff
path: root/x11-servers/XFree86-4-Server-snap/files/patch-alpha_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-servers/XFree86-4-Server-snap/files/patch-alpha_video.c')
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-alpha_video.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-alpha_video.c b/x11-servers/XFree86-4-Server-snap/files/patch-alpha_video.c
new file mode 100644
index 000000000000..741664e27713
--- /dev/null
+++ b/x11-servers/XFree86-4-Server-snap/files/patch-alpha_video.c
@@ -0,0 +1,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