ctdb:includes: add #ifdef guard for ZERO_STRUCT
authorMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 13:08:01 +0000 (15:08 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 21:38:10 +0000 (23:38 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/include/internal/includes.h

index 639d75e18711498a4fe42ac47d8c5e24c93c4122..05f248890277ba5bb69f481480e81b8587c1054a 100644 (file)
@@ -46,7 +46,9 @@ enum debug_level {
 #define _PURE_
 #endif /* _PURE_ */
 
+#ifndef ZERO_STRUCT
 #define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
+#endif /* ZERO_STRUCT */
 
 #ifndef discard_const
 #define discard_const(ptr) ((void *)((intptr_t)(ptr)))