[PATCH] Use libnsl2 if possible Glibc can be built without a support for Sun RPC and applications are advised to use libnsl2 library instead. This is the case of Fedora 28 Linux distribution.
This patch uses ExtUtils::PkgConfig to locate and link with libnsl2 library if it is found. Otherwise it falls back to linking to libnsl as it used until now.
fix build failure with gcc 14. The type specified doesn't fit in yp_order's third argument without implicit casting. This is fatal starting with gcc 14, so let's declare the variable with the expected size right away.