tdb: define _PUBLIC_ so we can compile tdb. rusty/tdb-update
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:41:38 +0000 (14:11 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:41:38 +0000 (14:11 +0930)
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>
lib/tdb/include/tdb.h

index b20c2bfa95da43895c95e062d1f8e84d1c4a02fc..cd17132fbed87cea9de8be1d982963b07af430ca 100644 (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 */