summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-12-20 17:10:53 +0000
committerdelphij <delphij@FreeBSD.org>2006-12-20 17:10:53 +0000
commitb4342466072cebe884630bc1216a2a9d99272a2e (patch)
treeb6d32479df5582403affdac10c8d425a5e7f6bb8 /sys/dev/aac
parent38f526ca4881c7c1a4fd2c13e6d839afccb09e4b (diff)
downloadFreeBSD-src-b4342466072cebe884630bc1216a2a9d99272a2e.zip
FreeBSD-src-b4342466072cebe884630bc1216a2a9d99272a2e.tar.gz
On amd64 platform, use linux32 headers so 32-bit Linux applications
would be able to work with aac(4). This approach is used by some other drivers as well. However, we need a more generic way to do this in order to avoid having to special case headers in individual drivers for each platform. Obtained from: Adaptec (version b11518) Approved by: scottl
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac_linux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/aac/aac_linux.c b/sys/dev/aac/aac_linux.c
index 21c944b..f885235 100644
--- a/sys/dev/aac/aac_linux.c
+++ b/sys/dev/aac/aac_linux.c
@@ -38,8 +38,13 @@ __FBSDID("$FreeBSD$");
#include <sys/module.h>
#include <sys/file.h>
#include <sys/proc.h>
+#ifdef __amd64__
+#include <machine/../linux32/linux.h>
+#include <machine/../linux32/linux32_proto.h>
+#else
#include <machine/../linux/linux.h>
#include <machine/../linux/linux_proto.h>
+#endif
#include <compat/linux/linux_ioctl.h>
/* There are multiple ioctl number ranges that need to be handled */
OpenPOWER on IntegriCloud