diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2019-04-05 18:55:24 +0200 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2019-04-06 01:29:31 +0000 |
commit | 8eeb5150ed99914e252a84f1637f179e3de04659 (patch) | |
tree | bacd3e4390dcbf9ae91736429a7270d6a3ddbf30 /src/network/ssl | |
parent | 82ad4be4a2e0c2bccb6cd8ea2440aefee4ec48ec (diff) |
QDnsLookup: fix "Resolver functions not found" error on FreeBSD
The current code only tries to load the required functions from
LIBRESOLV_SO (if defined) and resolv, but on FreeBSD they are in libc:
https://www.freebsd.org/cgi/man.cgi?query=res_query&sektion=3&apropos=0&manpath=freebsd
This commit changes the code so that, after failing to load the
non-existent libraries, it attempts to load the functions with dlsym()
using the special handle RTLD_DEFAULT, which searches for the specified
symbol in the loaded libraries.
Task-number: QTBUG-74844
Change-Id: If97aaae233cabbfa01c30d26d9a7fb01ec3ff5c2
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/ssl')
0 files changed, 0 insertions, 0 deletions