CTDB wants to use these functions but Samba's tevent wants to mark
them deprecated. This adds a #define to shut up the warnings and sets
it in CFLAGS.
Signed-off-by: Martin Schwenke <martin@meltin.net>
-I@tallocdir@ -I@tdbdir@/include -I@libreplacedir@ \
-DVARDIR=\"$(localstatedir)\" -DETCDIR=\"$(etcdir)\" \
-DLOGDIR=\"$(logdir)\" \
- -DUSE_MMAP=1 @CFLAGS@ $(POPT_CFLAGS)
+ -DUSE_MMAP=1 -DTEVENT_DEPRECATED_QUIET=1 @CFLAGS@ $(POPT_CFLAGS)
LIB_FLAGS=@LDFLAGS@ -Llib @LIBS@ $(POPT_LIBS) @INFINIBAND_LIBS@ @CTDB_PCAP_LDFLAGS@
#ifndef __TEVENT_H__
#define __TEVENT_H__
+#ifndef TEVENT_DEPRECATED
#define TEVENT_DEPRECATED
+#endif
#include <stdint.h>
#include <talloc.h>
void *stack_ptr,
const char *location);
#ifdef TEVENT_DEPRECATED
+#if (TEVENT_DEPRECATED_QUIET != 1)
#ifndef _DEPRECATED_
#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
#define _DEPRECATED_ __attribute__ ((deprecated))
#define _DEPRECATED_
#endif
#endif
+#else
+#undef _DEPRECATED_
+#define _DEPRECATED_
+#endif
void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
void tevent_loop_set_nesting_hook(struct tevent_context *ev,
tevent_nesting_hook hook,