1 --- recv.c.orig 2008-09-01 21:12:58.000000000 -0700
2 +++ recv.c 2008-09-01 21:13:04.000000000 -0700
3 @@ -40,11 +40,21 @@ __FBSDID("$FreeBSD: src/lib/libc/net/rec
5 #include "un-namespace.h"
7 +#ifdef VARIANT_CANCELABLE
8 +ssize_t __recvfrom(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict);
9 +#else /* !VARIANT_CANCELABLE */
10 +ssize_t __recvfrom_nocancel(int, void *, size_t, int, struct sockaddr * __restrict, socklen_t * __restrict);
11 +#endif /* VARIANT_CANCELABLE */
14 recv(s, buf, len, flags)
19 - return (_recvfrom(s, buf, len, flags, NULL, 0));
20 +#ifdef VARIANT_CANCELABLE
21 + return (__recvfrom(s, buf, len, flags, NULL, 0));
22 +#else /* !VARIANT_CANCELABLE */
23 + return (__recvfrom_nocancel(s, buf, len, flags, NULL, 0));
24 +#endif /* VARIANT_CANCELABLE */