summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-08-05 11:47:02 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-08-05 12:27:17 -0400
commitbdb9c358705eb894cfce7bb6dd1b37c425f5d32c (patch)
treeb50c50fa41f36091dabb1f049c3328284080d733 /server
parent1f6d7dfad2956cb2f6c33104eda4fdbefe380a42 (diff)
downloadsssd-bdb9c358705eb894cfce7bb6dd1b37c425f5d32c.tar.gz
sssd-bdb9c358705eb894cfce7bb6dd1b37c425f5d32c.tar.xz
sssd-bdb9c358705eb894cfce7bb6dd1b37c425f5d32c.zip
Fix broken ifndefs
ifndef doesn't work for those functions that aren't already macro definitions in tevent.h like tevent_req_data. However if tevent_req_data is defined in tevent.h, all other functions are available as well. So just check for tevent_req_data and define all of them if it is not available. This should fix compiling on distros with the latsest tevent.
Diffstat (limited to 'server')
-rw-r--r--server/util/util.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/server/util/util.h b/server/util/util.h
index c4e3e49db..e11bc51cf 100644
--- a/server/util/util.h
+++ b/server/util/util.h
@@ -84,18 +84,9 @@ void debug_fn(const char *format, ...);
* should be used as tevent_req is rightfully opaque there */
#ifndef tevent_req_data
#define tevent_req_data(req, type) ((type *)req->private_state)
-#endif
-
-#ifndef tevent_req_set_callback
#define tevent_req_set_callback(req, func, data) \
do { req->async.fn = func; req->async.private_data = data; } while(0)
-#endif
-
-#ifndef tevent_req_callback_data
#define tevent_req_callback_data(req, type) ((type *)req->async.private_data)
-#endif
-
-#ifndef tevent_req_notify_callback
#define tevent_req_notify_callback(req) \
do { \
if (req->async.fn != NULL) { \