Workaround for newer glibc, linking against libraries build on older versons results in missing symbols.

master
Nicky 2022-04-03 01:13:04 +02:00
parent c0354a25c7
commit 6da40d7ad4
1 changed files with 22 additions and 3 deletions

View File

@ -40,10 +40,29 @@
#include <exception>
#include "json/reader.h" // <FS:ND/> To parse manifest.json from pepperflash
#include <gio/gio.h>
#include <resolv.h>
#if (__GLIBC__*1000 + __GLIBC_MINOR__) >= 2034
#pragma message "Compiling with libresolv stubs"
extern "C"
{
int __res_nquery(res_state statep,
const char *dname, int qclass, int type,
unsigned char *answer, int anslen)
{
return res_nquery( statep, dname, qclass, type, answer, anslen );
}
int __dn_expand(const unsigned char *msg,
const unsigned char *eomorig,
const unsigned char *comp_dn, char *exp_dn,
int length)
{
return dn_expand( msg,eomorig,comp_dn,exp_dn,length);
}
}
#endif
#if LL_SEND_CRASH_REPORTS
#include "breakpad/client/linux/handler/exception_handler.h"