diff options
author | Michael Adam <obnox@samba.org> | 2014-06-20 15:08:01 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-06-20 23:38:10 +0200 |
commit | fd4bf963784c36e355f58ab445aec3ff3ba8b858 (patch) | |
tree | 03912595c24b51166895b27ea8485d6994fe7d43 /ctdb | |
parent | 89dafd1bcdaf4ee8ba88437cd476fc9046b3109e (diff) | |
download | samba-fd4bf963784c36e355f58ab445aec3ff3ba8b858.tar.gz |
ctdb:includes: add #ifdef guard for ZERO_STRUCT
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/include/internal/includes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/include/internal/includes.h b/ctdb/include/internal/includes.h index 639d75e1871..05f24889027 100644 --- a/ctdb/include/internal/includes.h +++ b/ctdb/include/internal/includes.h @@ -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))) |