summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2006-04-18 05:57:28 +0000
committerEric Anholt <anholt@freebsd.org>2006-04-18 05:57:28 +0000
commit40b70e324430e36f10d6229793acf66d9104aff7 (patch)
tree2a9e2c40a119d59b369994f19ffb1b6aa55f31ce
parent63c4d0257616c799d4f0bb84be3f17dbaf867495 (diff)
Use __LP64__ instead of checking the linux-specific BITS_PER_LONG.
-rw-r--r--shared-core/radeon_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c
index 478dcef0..a56d584d 100644
--- a/shared-core/radeon_state.c
+++ b/shared-core/radeon_state.c
@@ -2970,7 +2970,7 @@ static int radeon_cp_getparam(DRM_IOCTL_ARGS)
case RADEON_PARAM_STATUS_HANDLE:
value = dev_priv->ring_rptr_offset;
break;
-#if BITS_PER_LONG == 32
+#if !__LP64__
/*
* This ioctl() doesn't work on 64-bit platforms because hw_lock is a
* pointer which can't fit into an int-sized variable. According to