From 7d73130125723425e8884b00ca20ab77788f39d8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 13 Feb 2009 10:36:11 -0800 Subject: [PATCH] Fix the build. When you do "make distclean; ./autogen; ./configure; make" and it still doesn't build you know it's messed up. Jeremy. --- source3/include/includes.h | 2 ++ source4/include/includes.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/source3/include/includes.h b/source3/include/includes.h index 2c033e8b69a..a9f813b7f85 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -1049,7 +1049,9 @@ ssize_t readahead(int fd, off64_t offset, size_t count); #undef HAVE_MMAP #endif +#ifndef CONST_DISCARD #define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr))) +#endif void smb_panic( const char *why ) _NORETURN_; void dump_core(void) _NORETURN_; diff --git a/source4/include/includes.h b/source4/include/includes.h index d9b7759e7e9..ddda21f9d8e 100644 --- a/source4/include/includes.h +++ b/source4/include/includes.h @@ -64,6 +64,10 @@ /* String routines */ #include "../lib/util/safe_string.h" +#ifndef CONST_DISCARD +#define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr))) +#endif + #if 0 /* darn, we can't do this now that we don't link the ldb tools to all the smb libs */ #define TALLOC_ABORT(reason) smb_panic(reason) -- 2.11.4.GIT