xf86drmMode.h: Add header protection
authorDavid Herrman <dh.herrmann@googlemail.com>
Fri, 9 Mar 2012 18:40:14 +0000 (13:40 -0500)
committerAdam Jackson <ajax@redhat.com>
Fri, 9 Mar 2012 18:40:14 +0000 (13:40 -0500)
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>
xf86drmMode.h

index 34f5fb1..991e3f9 100644 (file)
@@ -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