[pypy-commit] pypy default: Include <sys/sysmacros.h> on Gnu/Hurd

stefanor pypy.commits at gmail.com
Sun Feb 10 07:11:00 EST 2019


Author: Stefano Rivera <stefano at rivera.za.net>
Branch: 
Changeset: r95925:95a74e2dcf65
Date: 2019-02-10 14:10 +0200
http://bitbucket.org/pypy/pypy/changeset/95a74e2dcf65/

Log:	Include <sys/sysmacros.h> on Gnu/Hurd

	Issue: #2948

diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -254,7 +254,7 @@
                 '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')


More information about the pypy-commit mailing list