Skip to content

Commit

Permalink
drm: Untangle __KERNEL__ guards
Browse files Browse the repository at this point in the history
make headers_install can't handle fancy conditions, so let's simplify
things for it a bit.

Cc: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459348943-12803-1-git-send-email-daniel.vetter@ffwll.ch
  • Loading branch information
Daniel Vetter committed Mar 30, 2016
1 parent 8812f38 commit 00c9672
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/uapi/drm/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
#ifndef _DRM_H_
#define _DRM_H_

#if defined(__KERNEL__) || defined(__linux__)
#if defined(__KERNEL__)

#include <linux/types.h>
#include <asm/ioctl.h>
typedef unsigned int drm_handle_t;

#elif defined(__linux__)

#include <linux/types.h>
#include <asm/ioctl.h>
Expand Down

0 comments on commit 00c9672

Please sign in to comment.