ldb:includes: protect ldb_modules.h from being used by Samba < 4.7
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Jun 2017 06:14:02 +0000 (08:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 2 Jul 2017 15:35:20 +0000 (17:35 +0200)
commit0fac7e4d7391f3f4aed54f0c7fbc9fd3cc33bf6a
tree11df266086c7a15e46dba5a824549955b2dce449
parenta1158d223711b82eb8d8312fb3f0709d307c0fb7
ldb:includes: protect ldb_modules.h from being used by Samba < 4.7

Samba versions before 4.7 are incompatible with the read_[un]lock()
behaviour introduced into ldb.

This makes sure older Samba versions fail to compile against
ldb >= 1.2.0.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12859

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/include/ldb_module.h