Module Name: src Committed By: pooka Date: Sat Feb 5 12:38:20 UTC 2011
Modified Files: src/lib/librumpclient: rumpclient.c src/lib/librumphijack: hijack.c Log Message: Fix some snafus to allow rumphijack to work on -current. reported by Alexander Nasonov To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/lib/librumpclient/rumpclient.c cvs rdiff -u -r1.23 -r1.24 src/lib/librumphijack/hijack.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpclient/rumpclient.c diff -u src/lib/librumpclient/rumpclient.c:1.21 src/lib/librumpclient/rumpclient.c:1.22 --- src/lib/librumpclient/rumpclient.c:1.21 Fri Jan 28 19:21:28 2011 +++ src/lib/librumpclient/rumpclient.c Sat Feb 5 12:38:19 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpclient.c,v 1.21 2011/01/28 19:21:28 pooka Exp $ */ +/* $NetBSD: rumpclient.c,v 1.22 2011/02/05 12:38:19 pooka Exp $ */ /* * Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved. @@ -709,7 +709,11 @@ FINDSYM(sendto); FINDSYM(setsockopt); FINDSYM(kqueue); +#if !__NetBSD_Prereq__(5,99,7) FINDSYM(kevent); +#else + FINDSYM2(kevent,_sys___kevent50); +#endif #undef FINDSYM #undef FINDSY2 Index: src/lib/librumphijack/hijack.c diff -u src/lib/librumphijack/hijack.c:1.23 src/lib/librumphijack/hijack.c:1.24 --- src/lib/librumphijack/hijack.c:1.23 Thu Jan 27 18:12:19 2011 +++ src/lib/librumphijack/hijack.c Sat Feb 5 12:38:19 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: hijack.c,v 1.23 2011/01/27 18:12:19 pooka Exp $ */ +/* $NetBSD: hijack.c,v 1.24 2011/02/05 12:38:19 pooka Exp $ */ /*- * Copyright (c) 2011 Antti Kantee. All Rights Reserved. @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: hijack.c,v 1.23 2011/01/27 18:12:19 pooka Exp $"); +__RCSID("$NetBSD: hijack.c,v 1.24 2011/02/05 12:38:19 pooka Exp $"); #define __ssp_weak_name(fun) _hijack_ ## fun @@ -80,17 +80,14 @@ #if !__NetBSD_Prereq__(5,99,7) #define LIBCSELECT select #define LIBCPOLLTS pollts -#define LIBCPOLL poll #else -#define LIBCSELECT __select50 -#define LIBCPOLLTS __pollts50 -#define LIBCPOLL __poll50 +#define LIBCSELECT _sys___select50 +#define LIBCPOLLTS _sys___pollts50 #endif int LIBCSELECT(int, fd_set *, fd_set *, fd_set *, struct timeval *); int LIBCPOLLTS(struct pollfd *, nfds_t, const struct timespec *, const sigset_t *); -int LIBCPOLL(struct pollfd *, nfds_t, int); #define S(a) __STRING(a) struct sysnames { @@ -745,7 +742,7 @@ } int -LIBCPOLL(struct pollfd *fds, nfds_t nfds, int timeout) +poll(struct pollfd *fds, nfds_t nfds, int timeout) { struct timespec ts; struct timespec *tsp = NULL;