[stgt] [PATCH 11/15] Protect driver.h from multiple inclusion

Arne Redlich arne.redlich at googlemail.com
Tue Jun 9 18:22:41 CEST 2009


Signed-off-by: Arne Redlich <arne.redlich at googlemail.com>
---
 usr/driver.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/usr/driver.h b/usr/driver.h
index 4dead54..f9cb386 100644
--- a/usr/driver.h
+++ b/usr/driver.h
@@ -1,3 +1,6 @@
+#ifndef __DRIVER_H__
+#define __DRIVER_H__
+
 struct tgt_driver {
 	const char *name;
 	int use_kernel;
@@ -25,3 +28,4 @@ extern struct tgt_driver *tgt_drivers[];
 extern int get_driver_index(char *name);
 extern int register_driver(struct tgt_driver *drv);
 
+#endif /* __DRIVER_H__ */
-- 
1.6.0.4



--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list