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. --- lib/socket.c.orig 2025-11-14 14:14:24.604057983 +0000 +++ lib/socket.c @@@@ -170,7 +170,7 @@@@ set_tcp_sockopt(int sockfd, int optname, { int level; - #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__sun) || (defined(__APPLE__) && defined(__MACH__)) + #if defined(HAVE_GETPROTOBYNAME) struct protoent *buf; if ((buf = getprotobyname("tcp")) != NULL) @