diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-04-22 14:11:38 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-04-22 14:11:38 +0930 |
commit | 7d094c3dd7d66f577bc3eb134a6980e392feaaa2 (patch) | |
tree | 432ede09bfdd6783b0f65c495d021ec34f912685 /ctdb/lib/tdb/include | |
parent | b2b5d9881a96fc59a50c38eba3835eb3a1032ab0 (diff) | |
download | samba-7d094c3dd7d66f577bc3eb134a6980e392feaaa2.tar.gz samba-7d094c3dd7d66f577bc3eb134a6980e392feaaa2.tar.xz samba-7d094c3dd7d66f577bc3eb134a6980e392feaaa2.zip |
tdb: define _PUBLIC_ so we can compile tdb.
The Samba tree defines _PUBLIC_ (and _PRIVATE_) for libraries to
control visibility. The last commit absorbed this from their tdb,
but we need to #define to stub it out since ctdb doesn't use it
(and doesn't need to: we only use tdb internally).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 54bee0ec670724c337b882e7dda3e999ffa80691)
Diffstat (limited to 'ctdb/lib/tdb/include')
-rw-r--r-- | ctdb/lib/tdb/include/tdb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/lib/tdb/include/tdb.h b/ctdb/lib/tdb/include/tdb.h index b20c2bfa95d..cd17132fbed 100644 --- a/ctdb/lib/tdb/include/tdb.h +++ b/ctdb/lib/tdb/include/tdb.h @@ -32,6 +32,11 @@ extern "C" { #include "signal.h" +/* Samba sets hidden attribute when building libraries: we don't. */ +#ifndef _PUBLIC_ +#define _PUBLIC_ +#endif + /* flags to tdb_store() */ #define TDB_REPLACE 1 /* Unused */ #define TDB_INSERT 2 /* Don't overwrite an existing entry */ |