wrap config.h include with defined for KERNEL

main
Dave Airlie 2005-05-15 10:19:21 +00:00
parent e0fc400b68
commit bd72c6990f
1 changed files with 2 additions and 0 deletions

View File

@ -63,7 +63,9 @@
#endif
#if defined(__linux__)
#if defined(__KERNEL__)
#include <linux/config.h>
#endif
#include <asm/ioctl.h> /* For _IO* macros */
#define DRM_IOCTL_NR(n) _IOC_NR(n)
#define DRM_IOC_VOID _IOC_NONE