librump*: Require 10.99.7 or higher for __kevent100

This commit is contained in:
rin 2023-07-31 04:37:04 +00:00
parent 91637ac6c6
commit fb68413f18
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rumpclient.c,v 1.70 2023/07/28 18:19:00 christos Exp $ */
/* $NetBSD: rumpclient.c,v 1.71 2023/07/31 04:37:04 rin Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@ -50,7 +50,7 @@
#define USE_SIGNALFD
#endif
__RCSID("$NetBSD: rumpclient.c,v 1.70 2023/07/28 18:19:00 christos Exp $");
__RCSID("$NetBSD: rumpclient.c,v 1.71 2023/07/31 04:37:04 rin Exp $");
#include <sys/param.h>
#include <sys/mman.h>
@ -926,7 +926,7 @@ rumpclient_init(void)
#ifdef __NetBSD__
#if !__NetBSD_Prereq__(5,99,7)
FINDSYM(kevent)
#elif !__NetBSD_Prereq__(10,99,4)
#elif !__NetBSD_Prereq__(10,99,7)
FINDSYM2(kevent,_sys___kevent50)
#else
FINDSYM2(kevent,_sys___kevent100)

View File

@ -1,4 +1,4 @@
/* $NetBSD: hijack.c,v 1.137 2023/07/28 18:19:00 christos Exp $ */
/* $NetBSD: hijack.c,v 1.138 2023/07/31 04:37:04 rin Exp $ */
/*-
* Copyright (c) 2011 Antti Kantee. All Rights Reserved.
@ -34,7 +34,7 @@
#include <rump/rumpuser_port.h>
#if !defined(lint)
__RCSID("$NetBSD: hijack.c,v 1.137 2023/07/28 18:19:00 christos Exp $");
__RCSID("$NetBSD: hijack.c,v 1.138 2023/07/31 04:37:04 rin Exp $");
#endif
#include <sys/param.h>
@ -214,7 +214,7 @@ enum dualcall {
#if !__NetBSD_Prereq__(5,99,7)
#define REALKEVENT kevent
#elif !__NetBSD_Prereq__(10,99,4)
#elif !__NetBSD_Prereq__(10,99,7)
#define REALKEVENT _sys___kevent50
#else
#define REALKEVENT _sys___kevent100