1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

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)
This commit is contained in:
Rusty Russell 2010-04-22 14:11:38 +09:30
parent b2b5d9881a
commit 7d094c3dd7

View File

@ -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 */