diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-04-20 14:26:59 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-04-20 14:26:59 +0000 |
commit | 4a49e6c3668dd281f70a13fb382fac93452758e2 (patch) | |
tree | 256dd95a6fe837f1b34da2619e71c4e2b1f7d295 /shared-core | |
parent | 1327222f9b5521c2d98f7550eb335b68e2af3aea (diff) |
check for __FreeBSD_kernel__ (bug 3810)
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/drm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h index 6e973b0d..87f8da6b 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -79,8 +79,8 @@ #define DRM_IOC_WRITE _IOC_WRITE #define DRM_IOC_READWRITE _IOC_READ|_IOC_WRITE #define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size) -#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) -#if defined(__FreeBSD__) && defined(IN_MODULE) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && defined(IN_MODULE) /* Prevent name collision when including sys/ioccom.h */ #undef ioctl #include <sys/ioccom.h> |