Check for utmpx.h instead of __unix__
There is no reliable macro to test for UNIX
This commit is contained in:
parent
498d3d5906
commit
edac0e8023
@ -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*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user