summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrman <dh.herrmann@googlemail.com>2012-03-09 13:40:14 -0500
committerAdam Jackson <ajax@redhat.com>2012-03-09 13:40:14 -0500
commitfd39e61d0edfd30052d5f0b59b9215574e37942f (patch)
treee399984fa0dcbe9961d4f988967a6152d42b9aae
parentf82c77870354ba736774b6c45ccf8a326732243a (diff)
xf86drmMode.h: Add header protection
xf86drmMode.h is missing a header protection. xf86drm.h has one so just copy it and adjust the name. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
-rw-r--r--xf86drmMode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/xf86drmMode.h b/xf86drmMode.h
index 34f5fb14c..991e3f94c 100644
--- a/xf86drmMode.h
+++ b/xf86drmMode.h
@@ -33,6 +33,9 @@
*
*/
+#ifndef _XF86DRMMODE_H_
+#define _XF86DRMMODE_H_
+
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
@@ -428,3 +431,5 @@ extern int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id,
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
+
+#endif