summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Dawes <dawes@xfree86.org>2001-03-21 20:22:16 +0000
committerDavid Dawes <dawes@xfree86.org>2001-03-21 20:22:16 +0000
commit301a1ad315bd7881adcf0df33c589e0a74c059f4 (patch)
treeef65e978d870016df445a0b7bfbc92bb127a210b
parent92b0aaa6fe787c2e17bba1973d19d6fd5a61d03a (diff)
Move #include <linux/config.h> inside the __linux__ #ifdef, so that it
doesn't break non-Linux builds.
-rw-r--r--linux/drm.h2
-rw-r--r--shared-core/drm.h2
-rw-r--r--shared/drm.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/linux/drm.h b/linux/drm.h
index ddabc277..f1abaabf 100644
--- a/linux/drm.h
+++ b/linux/drm.h
@@ -35,8 +35,8 @@
#ifndef _DRM_H_
#define _DRM_H_
-#include <linux/config.h>
#if defined(__linux__)
+#include <linux/config.h>
#include <asm/ioctl.h> /* For _IO* macros */
#define DRM_IOCTL_NR(n) _IOC_NR(n)
#elif defined(__FreeBSD__)
diff --git a/shared-core/drm.h b/shared-core/drm.h
index ddabc277..f1abaabf 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -35,8 +35,8 @@
#ifndef _DRM_H_
#define _DRM_H_
-#include <linux/config.h>
#if defined(__linux__)
+#include <linux/config.h>
#include <asm/ioctl.h> /* For _IO* macros */
#define DRM_IOCTL_NR(n) _IOC_NR(n)
#elif defined(__FreeBSD__)
diff --git a/shared/drm.h b/shared/drm.h
index ddabc277..f1abaabf 100644
--- a/shared/drm.h
+++ b/shared/drm.h
@@ -35,8 +35,8 @@
#ifndef _DRM_H_
#define _DRM_H_
-#include <linux/config.h>
#if defined(__linux__)
+#include <linux/config.h>
#include <asm/ioctl.h> /* For _IO* macros */
#define DRM_IOCTL_NR(n) _IOC_NR(n)
#elif defined(__FreeBSD__)