[PATCH 06/45] drm_mode.h: include stdint.h and linux/types.h in userspace

From: Mikko Rapeli
Date: Mon Feb 16 2015 - 18:18:13 EST


Fixes compilation error:

drm/drm_mode.h:472:2: error: unknown type name âuint32_tâ

Signed-off-by: Mikko Rapeli <mikko.rapeli@xxxxxx>
---
include/uapi/drm/drm_mode.h | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm/drm_mode.h
index a0db2d4a..c55dfdf 100644
--- a/include/uapi/drm/drm_mode.h
+++ b/include/uapi/drm/drm_mode.h
@@ -27,7 +27,12 @@
#ifndef _DRM_MODE_H
#define _DRM_MODE_H

+#ifdef __KERNEL__
#include <linux/types.h>
+#else
+#include <stdint.h>
+#include <linux/types.h>
+#endif

#define DRM_DISPLAY_INFO_LEN 32
#define DRM_CONNECTOR_NAME_LEN 32
--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/