Skip to content

Commit

Permalink
libbareos: solve the undefined reference by a weak attribute
Browse files Browse the repository at this point in the history
- this is probably not protable
- GetTlsResourceByFullyQualifiedResourceName is not known when linking libbareos
  • Loading branch information
franku committed Aug 28, 2018
1 parent 66c12fb commit 051657f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/lib/parse_conf.h
Expand Up @@ -500,7 +500,7 @@ DLL_IMP_EXP void InitResource(int type, ResourceItem *item);
DLL_IMP_EXP bool SaveResource(int type, ResourceItem *item, int pass);
DLL_IMP_EXP bool StoreResource(int type, LEX *lc, ResourceItem *item, int index, int pass);
DLL_IMP_EXP const char *res_to_str(int rcode);
DLL_IMP_EXP bool GetTlsResourceByFullyQualifiedResourceName(const char *fq_name_, std::string &psk_return_value);
DLL_IMP_EXP bool GetTlsResourceByFullyQualifiedResourceName(const char *fq_name_, std::string &psk_return_value) __attribute__((weak));


#ifdef HAVE_JANSSON
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib/tls_openssl_private.cc
Expand Up @@ -26,7 +26,7 @@
#include "lib/bpoll.h"
#include "lib/crypto_openssl.h"

#include "parse_conf.h"
#include "lib/parse_conf.h"

#include <bareos.h>
#include <openssl/err.h>
Expand Down

0 comments on commit 051657f

Please sign in to comment.