Skip to content

Commit

Permalink
drm: wrap config.h include in a ifdef KERNEL
Browse files Browse the repository at this point in the history
This file can be included from userspace so wrap the config.h include.

Signed-off-by: David Airlie <airlied@linux.ie>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jul 7, 2005
1 parent c94f702 commit 850eb83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/drm/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
#define _DRM_H_

#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
Expand Down

0 comments on commit 850eb83

Please sign in to comment.