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

View File

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