openbsd-ports/graphics/fxtv/patches/patch-tvutil_c
sthen 22edabdcb4 Remove patches casting NULL when used as a sentinel to a pointer.
These are no longer needed since unistd.h r1.63 et al.  ok ajacoutot@
2012-02-21 22:19:31 +00:00

13 lines
427 B
Plaintext

$OpenBSD: patch-tvutil_c,v 1.6 2012/02/21 22:19:31 sthen Exp $
--- tvutil.c.orig Mon Oct 23 04:43:46 2000
+++ tvutil.c Sat May 22 16:04:14 2010
@@ -114,7 +114,7 @@ void CleanupChildFileDesc()
#elif defined(__NetBSD__)
int mib[2] = { CTL_KERN, OPEN_MAX };
#elif defined(__OpenBSD__)
- int mib[2] = { CTL_KERN, OPEN_MAX };
+ int mib[2] = { CTL_KERN, KERN_MAXFILES };
#endif
int i;
size_t len;