head 1.2; access; symbols pkgsrc-2023Q1:1.1.0.14 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.12 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.10 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.8 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.6 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.4 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.2 pkgsrc-2021Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2023.04.26.16.12.48; author wiz; state dead; branches; next 1.1; commitid aS5j6iKp1r6WrDmE; 1.1 date 2021.09.21.14.44.49; author ryoon; state Exp; branches; next ; commitid zVeA7PVty3JEFP9D; desc @@ 1.2 log @libepoll-shim: update to 0.0.20230411. Changes not documented, 2 years of git commits. @ text @$NetBSD: patch-src_CMakeLists.txt,v 1.1 2021/09/21 14:44:49 ryoon Exp $ * If /usr/include/sys/timerfd.h exists, do not install timerfd.h. --- src/CMakeLists.txt.orig 2021-04-18 19:28:52.000000000 +0000 +++ src/CMakeLists.txt @@@@ -31,6 +31,7 @@@@ endmacro() include(CheckSymbolExists) # FreeBSD 13 supports native eventfd descriptors. Prefer them if available. check_symbol_exists(eventfd "sys/eventfd.h" HAVE_EVENTFD) +check_symbol_exists(timerfd_create "sys/timerfd.h" HAVE_TIMERFD) check_symbol_exists(kqueue1 "sys/event.h" HAVE_KQUEUE1) add_compat_target(kqueue1 "NOT;HAVE_KQUEUE1") check_symbol_exists(sigandset "signal.h" HAVE_SIGANDSET) @@@@ -65,7 +66,6 @@@@ add_library( epoll.c epollfd_ctx.c kqueue_event.c - timerfd.c timerfd_ctx.c signalfd.c signalfd_ctx.c @@@@ -73,6 +73,9 @@@@ add_library( if(NOT HAVE_EVENTFD) target_sources(epoll-shim PRIVATE eventfd.c eventfd_ctx.c) endif() +if(NOT HAVE_TIMERFD) + target_sources(epoll-shim PRIVATE timerfd.c) +endif() include(GenerateExportHeader) generate_export_header(epoll-shim BASE_NAME epoll_shim) target_link_libraries( @@@@ -91,11 +94,13 @@@@ set(_headers "epoll-shim/detail/read.h" "epoll-shim/detail/write.h" "sys/epoll.h" - "sys/signalfd.h" - "sys/timerfd.h") + "sys/signalfd.h") if(NOT HAVE_EVENTFD) list(APPEND _headers "sys/eventfd.h") endif() +if(NOT HAVE_TIMERFD) + list(APPEND _headers "sys/timerfd.h") +endif() foreach(_header IN LISTS _headers) configure_file("${PROJECT_SOURCE_DIR}/include/${_header}" "${PROJECT_BINARY_DIR}/install-include/${_header}" COPYONLY) @ 1.1 log @libepoll-shim: Support NetBSD with eventfd(2)/timerfd(2) * Simplify logics in Makefile. * Exclude eventfd.h for NetBSD with eventfd(2). * Exclude timerfd.h for NetBSD with timerfd(2). @ text @d1 1 a1 1 $NetBSD$ @