Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison lang/pypy310/files/patch-rpython_rlib_rposix.py @ 199:8b567a874360
Upgrade to PyPy v7.3.19.
BUGS:
- pypy311 not yet supported.
- pypy39 not yet deleted.
- Tests for pypy3 not yet runnable.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 12 Mar 2025 13:45:29 +0100 |
| parents | 9cc467368751 |
| children |
comparison
equal
deleted
inserted
replaced
| 198:c43bcad6c935 | 199:8b567a874360 |
|---|---|
| 1 --- rpython/rlib/rposix.py.orig 2023-12-24 19:15:32 UTC | 1 --- rpython/rlib/rposix.py.orig 2025-02-24 17:28:26 UTC |
| 2 +++ rpython/rlib/rposix.py | 2 +++ rpython/rlib/rposix.py |
| 3 @@ -214,6 +214,8 @@ else: | 3 @@ -212,6 +212,8 @@ else: |
| 4 includes.append('sys/sysmacros.h') | 4 includes.append('sys/sysmacros.h') |
| 5 if sys.platform.startswith('freebsd') or sys.platform.startswith('openbsd'): | 5 if sys.platform.startswith('freebsd') or sys.platform.startswith('openbsd'): |
| 6 includes.append('sys/ttycom.h') | 6 includes.append('sys/ttycom.h') |
| 7 + if sys.platform.startswith('freebsd') or sys.platform.startswith('openbsd'): | 7 + if sys.platform.startswith('freebsd') or sys.platform.startswith('openbsd'): |
| 8 + includes.append('termios.h') | 8 + includes.append('termios.h') |
| 9 libraries = ['util'] | 9 libraries = ['util'] |
| 10 | 10 |
| 11 eci = ExternalCompilationInfo( | 11 eci = ExternalCompilationInfo( |
| 12 @@ -3057,6 +3059,30 @@ if sys.platform.startswith('linux'): | 12 @@ -3067,6 +3069,30 @@ if sys.platform.startswith('linux'): |
| 13 """Passes offset==NULL; not support on all OSes""" | 13 """Passes offset==NULL; not support on all OSes""" |
| 14 res = c_sendfile(out_fd, in_fd, lltype.nullptr(_OFF_PTR_T.TO), count) | 14 res = c_sendfile(out_fd, in_fd, lltype.nullptr(_OFF_PTR_T.TO), count) |
| 15 return handle_posix_error('sendfile', res) | 15 return handle_posix_error('sendfile', res) |
| 16 + | 16 + |
| 17 +elif sys.platform.startswith('freebsd'): | 17 +elif sys.platform.startswith('freebsd'): |
