head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.05.01.19.43.30; author vins; state Exp; branches; next ; commitid 4FASsrb0KTHCd9EG; desc @@ 1.1 log @net/libnfs: Import libnfs-6.0.2 Packaged in wip by PHO, with some modifications by vins. LIBNFS is a client library for accessing NFS shares over a network. LIBNFS offers three different APIs, for different use: 1, RAW: A fully async low level RPC library for NFS protocols 2, NFS ASYNC: A fully asynchronous library for high level vfs functions 3, NFS SYNC: A synchronous library for high level vfs functions @ text @$NetBSD$ Improve portability: Directly check for getprotobyname(3) instead of guessing with OS-specific CPP macros. --- cmake/ConfigureChecks.cmake.orig 2024-12-14 08:03:11.000000000 +0000 +++ cmake/ConfigureChecks.cmake @@@@ -41,6 +41,11 @@@@ check_struct_has_member("struct sockaddr check_struct_has_member("struct sockaddr_storage" ss_family sys/socket.h HAVE_SOCKADDR_STORAGE) check_struct_has_member("struct stat" st_mtim.tv_nsec sys/stat.h HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC) +include(CheckSymbolExists) +if(HAVE_NETDB_H) + check_symbol_exists(getprotobyname "netdb.h" HAVE_GETPROTOBYNAME) +endif() + include(CheckCSourceCompiles) check_c_source_compiles("#include int main(void) @