1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: Stefano Rivera <stefanor@debian.org>
Date: Sun, 10 Feb 2019 14:14:22 +0200
Subject: Include <sys/sysmacros.h> on Gnu/Hurd
Origin: upstream, https://bitbucket.org/pypy/pypy/commits/95a74e2dcf65
Bug-Upstream: https://bitbucket.org/pypy/pypy/issues/2948
---
rpython/rlib/rposix.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
index 8250ef5..4fab363 100644
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -254,7 +254,7 @@ else:
'sched.h',
'grp.h', 'dirent.h', 'sys/stat.h', 'fcntl.h',
'signal.h', 'sys/utsname.h', _ptyh]
- if sys.platform.startswith('linux'):
+ if sys.platform.startswith('linux') or sys.platform.startswith('gnu'):
includes.append('sys/sysmacros.h')
if sys.platform.startswith('freebsd') or sys.platform.startswith('openbsd'):
includes.append('sys/ttycom.h')
|