Skip to content

define RTLD_DEFAULT if not defined

Glenn Strauss requested to merge gps-guest/mariadb-10.5:rtld_default into master

define RTLD_DEFAULT if not defined

This should fix the issue on the kfreebsd-amd64 build:

https://buildd.debian.org/status/fetch.php?pkg=mariadb-10.5&arch=kfreebsd-amd64&ver=1%3A10.5.8-3&stamp=1610962510&raw=0

/<<PKGBUILDDIR>>/storage/maria/libmarias3/src/marias3.c: In function ‘curl_needs_openssl_locking’:
/<<PKGBUILDDIR>>/storage/maria/libmarias3/src/marias3.c:71:37: error: ‘RTLD_DEFAULT’ undeclared (first use in this function)
   71 |     openssl_set_id_callback = dlsym(RTLD_DEFAULT, "CRYPTO_set_id_callback");
      |                                     ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/storage/maria/libmarias3/src/marias3.c:71:37: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [storage/maria/CMakeFiles/aria_s3_copy.dir/build.make:137: storage/maria/CMakeFiles/aria_s3_copy.dir/libmarias3/src/marias3.c.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/builddir'
make[3]: *** [CMakeFiles/Makefile2:5955: storage/maria/CMakeFiles/aria_s3_copy.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....

Merge request reports

Loading