Check for utmpx.h instead of __unix__

There is no reliable macro to test for UNIX
This commit is contained in:
Kovid Goyal 2021-10-05 11:57:23 +05:30
parent 498d3d5906
commit edac0e8023
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1,6 +1,5 @@
#include "data-types.h" #include "data-types.h"
#ifdef __unix__ #if __has_include(<utmpx.h>)
#include <utmpx.h> #include <utmpx.h>
static PyObject* static PyObject*