$NetBSD: patch-lib_replace_wscript,v 1.4 2023/04/29 08:01:06 wiz Exp $

Skip epoll tests on SunOS, implementation is Linux-specific.

--- lib/replace/wscript.orig	2023-02-15 15:14:32.440958000 +0000
+++ lib/replace/wscript
@@ -480,7 +480,9 @@ def configure(conf):
     conf.CHECK_FUNCS('gai_strerror get_current_dir_name')
     conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups syscall setsid')
     conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize')
-    conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create')
+    conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r')
+    if not sys.platform.startswith('sunos'):
+        conf.CHECK_FUNCS('epoll_create')
     conf.CHECK_FUNCS('getprogname')
     if not conf.CHECK_FUNCS('copy_file_range'):
         conf.CHECK_CODE('''
