diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-04-01 21:08:02 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-04-01 21:08:02 +0000 |
commit | 28cbe0f2f3d96b5ed129c9db87c91c8f419f631e (patch) | |
tree | efe30833dd2a217fdbd02f7d3d7621efddbb5a28 /xserver/hw | |
parent | c899787052ae38146112a887d69d67e99f71d542 (diff) |
If privsep support isn't compiled in, use open() to open the agp device.
Diffstat (limited to 'xserver/hw')
-rw-r--r-- | xserver/hw/xfree86/os-support/bsd/bsd_agp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xserver/hw/xfree86/os-support/bsd/bsd_agp.c b/xserver/hw/xfree86/os-support/bsd/bsd_agp.c index 3930264a5..5e5077e8d 100644 --- a/xserver/hw/xfree86/os-support/bsd/bsd_agp.c +++ b/xserver/hw/xfree86/os-support/bsd/bsd_agp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bsd_agp.c,v 1.2 2007/11/25 18:41:23 matthieu Exp $ */ +/* $OpenBSD: bsd_agp.c,v 1.3 2008/04/01 21:08:01 matthieu Exp $ */ /* * Abstraction of the AGP GART interface. * @@ -63,7 +63,11 @@ GARTInit(int screenNum) if (gartFd != -1) return FALSE; +#ifndef X_PRIVSEP + gartFd = open(AGP_DEVICE, O_RDWR); +#else gartFd = priv_open_device(AGP_DEVICE); +#endif if (gartFd == -1 && errno == ENOENT) { /* try the old interface */ gartFd = xf86Info.consoleFd; |