diff options
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/drm_mode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-core/drm_mode.h b/shared-core/drm_mode.h index 601d2bd8..9b92733d 100644 --- a/shared-core/drm_mode.h +++ b/shared-core/drm_mode.h @@ -27,11 +27,13 @@ #ifndef _DRM_MODE_H #define _DRM_MODE_H +#ifdef __linux__ #if !defined(__KERNEL__) && !defined(_KERNEL) #include <stdint.h> #else #include <linux/kernel.h> #endif +#endif #define DRM_DISPLAY_INFO_LEN 32 #define DRM_CONNECTOR_NAME_LEN 32 |