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 changed files with 1 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
#include "data-types.h"
|
||||
#ifdef __unix__
|
||||
#if __has_include(<utmpx.h>)
|
||||
#include <utmpx.h>
|
||||
|
||||
static PyObject*
|
||||
|
|
|
|||
Loading…
Reference in a new issue