tdb: Set _PUBLIC_ in C file rather than header files (Debian bug 600898)
[kai/samba.git] / lib / tdb / common / error.c
index 9197918ddeaa048f56c1ebbaa611989add0a6bf4..2aaaa8134e4cfd1a5c43077f06399fc13c2f736b 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "tdb_private.h"
 
-enum TDB_ERROR tdb_error(struct tdb_context *tdb)
+_PUBLIC_ enum TDB_ERROR tdb_error(struct tdb_context *tdb)
 {
        return tdb->ecode;
 }
@@ -46,7 +46,7 @@ static struct tdb_errname {
             {TDB_ERR_RDONLY, "write not permitted"} };
 
 /* Error string for the last tdb error */
-const char *tdb_errorstr(struct tdb_context *tdb)
+_PUBLIC_ const char *tdb_errorstr(struct tdb_context *tdb)
 {
        uint32_t i;
        for (i = 0; i < sizeof(emap) / sizeof(struct tdb_errname); i++)