From da83dedb2285ceb64de3cdb639fcbfb35bfd50c4 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Wed, 6 Mar 2024 16:52:18 +0100 Subject: [PATCH] [meson] Check for header event.h of libev. Refs #287 (cherry picked from commit b71faa2d075a1a4a8b32c573c75edcb6da3d0018) --- config2.h.in | 3 +++ meson.build | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/config2.h.in b/config2.h.in index e880ad548..e862359ac 100644 --- a/config2.h.in +++ b/config2.h.in @@ -373,6 +373,9 @@ /* Define to 1 if you have the `event_get_version' function. */ #mesondefine HAVE_EVENT_GET_VERSION +/* Define to 1 if you have the header file. */ +#mesondefine HAVE_EVENT_H + /* Define to 1 if you have the header file. */ #mesondefine HAVE_EVENT2_EVENT_H diff --git a/meson.build b/meson.build index 343f22e41..de865268f 100644 --- a/meson.build +++ b/meson.build @@ -331,6 +331,10 @@ if compiler.has_header('event2/event.h') conf_data.set('HAVE_EVENT2_EVENT_H', 1) endif +if compiler.has_header('event.h') + conf_data.set('HAVE_EVENT_H', 1) +endif + if compiler.has_header('alloca.h') conf_data.set('HAVE_ALLOCA_H', 1) endif