[PATCH 05/45] drm.h: include stdlib.h in userspace

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


Fixes <drm/drm.h> compilation error:

drm/drm.h:132:2: error: unknown type name âsize_tâ

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

diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index b0b8556..8f4488f 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -42,6 +42,10 @@
#include <asm/ioctl.h>
typedef unsigned int drm_handle_t;

+#ifndef __KERNEL__
+#include <stdlib.h>
+#endif
+
#else /* One of the BSDs */

#include <sys/ioccom.h>
--
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/