summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/includes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 96560e4f5f..7d98cd583a 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -752,7 +752,7 @@ ssize_t readahead(int fd, off64_t offset, size_t count);
#endif
#ifndef CONST_DISCARD
-#define CONST_DISCARD(type, ptr) discard_const_p(type, ptr)
+#define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr)))
#endif
void dump_core(void) _NORETURN_;