diff options
author | Juan RP <xtraeme@gmail.com> | 2008-10-11 20:28:03 +0200 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-10-11 20:31:04 +0200 |
commit | 4c1c607c602e5e8d9277b9c01edfa7a8d10333cd (patch) | |
tree | a055c0e4a877dc5854c3e752e3f2d4847b7a7bd7 /src/common_interface.c | |
parent | 6ae378611bb4caaf57311734d3adcb7e10ac3622 (diff) | |
download | xorg-lib-libpciaccess-4c1c607c602e5e8d9277b9c01edfa7a8d10333cd.tar.gz |
Add NetBSD support
It's based in the OpenBSD code, but with differences because on NetBSD,
to set MTRRs we have to use i386/x86_64_set_mtrr() and link to libi386
or libx86_64.
X.Org bug#17931 <http://bugs.freedesktop.org/show_bug.cgi?id=17931>
Diffstat (limited to 'src/common_interface.c')
-rw-r--r-- | src/common_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_interface.c b/src/common_interface.c index 663ab44..649ca47 100644 --- a/src/common_interface.c +++ b/src/common_interface.c @@ -64,7 +64,7 @@ #define HTOLE_16(x) htole16(x) #define HTOLE_32(x) htole32(x) -#if defined(__FreeBSD__) || defined(__DragonFly__) +#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) #define LETOH_16(x) le16toh(x) #define LETOH_32(x) le32toh(x) #else |