summaryrefslogtreecommitdiffstats
path: root/src/wrap.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2012-01-13 15:57:11 -0500
committerNalin Dahyabhai <nalin@dahyabhai.net>2012-01-13 15:57:11 -0500
commit71e792652545a8a9eee962dde392058628e48b3a (patch)
tree75c37364b33bc281668db8061a40dd39e5d5cf58 /src/wrap.c
parenta59317207f2f6330ca5d79a06ded95195cf14fdf (diff)
downloadslapi-nis-71e792652545a8a9eee962dde392058628e48b3a.tar.gz
slapi-nis-71e792652545a8a9eee962dde392058628e48b3a.tar.xz
slapi-nis-71e792652545a8a9eee962dde392058628e48b3a.zip
- always use TXN IDs, if they exist, even if we don't really care
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wrap.c b/src/wrap.c
index 327212c..99c6860 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008,2010 Red Hat, Inc.
+ * Copyright 2008,2010,2012 Red Hat, Inc.
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -275,7 +275,7 @@ wrap_pblock_new(Slapi_PBlock *parent)
Slapi_PBlock *ret;
ret = slapi_pblock_new();
-#ifdef USE_SLAPI_BE_TXNS
+#ifdef defined(SLAPI_TXN) && defined(SLAPI_PARENT_TXN)
if (ret != NULL) {
void *txn;
slapi_pblock_get(parent, SLAPI_TXN, &txn);