From edac0e8023277620cef1629dfeb28c58d88f0535 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 Oct 2021 11:57:23 +0530 Subject: [PATCH] Check for utmpx.h instead of __unix__ There is no reliable macro to test for UNIX --- kitty/utmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kitty/utmp.c b/kitty/utmp.c index a08f7ef60..47d06720b 100644 --- a/kitty/utmp.c +++ b/kitty/utmp.c @@ -1,6 +1,5 @@ - #include "data-types.h" -#ifdef __unix__ +#if __has_include() #include static PyObject*