Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison lang/pypy311/files/patch-rpython_rlib___rsocket__rffi.py @ 201:aa93453cd531
Build PyPy3 for Python implementation 3.11.
BUGS:
- pypy39 not yet deleted.
- Tests are not working yet.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 12 Mar 2025 17:01:42 +0100 |
| parents | lang/pypy310/files/patch-rpython_rlib___rsocket__rffi.py@9cc467368751 |
| children |
comparison
equal
deleted
inserted
replaced
| 200:792fb463576a | 201:aa93453cd531 |
|---|---|
| 1 --- rpython/rlib/_rsocket_rffi.py.orig 2023-12-24 19:15:32 UTC | |
| 2 +++ rpython/rlib/_rsocket_rffi.py | |
| 3 @@ -16,6 +16,7 @@ _MSVC = target_platform.name == "msvc" | |
| 4 _MINGW = target_platform.name == "mingw32" | |
| 5 _SOLARIS = sys.platform == "sunos5" | |
| 6 _MACOSX = sys.platform == "darwin" | |
| 7 +_FREEBSD = sys.platform.startswith('freebsd') | |
| 8 _HAS_AF_PACKET = sys.platform.startswith('linux') # only Linux for now | |
| 9 | |
| 10 if _POSIX: | |
| 11 @@ -42,7 +43,10 @@ if _POSIX: | |
| 12 'sys/ioctl.h', | |
| 13 ) | |
| 14 | |
| 15 - cond_includes = [('AF_NETLINK', 'linux/netlink.h')] | |
| 16 + if _FREEBSD: | |
| 17 + cond_includes = [('AF_NETLINK', 'netlink/netlink.h')] | |
| 18 + else: | |
| 19 + cond_includes = [('AF_NETLINK', 'linux/netlink.h')] | |
| 20 | |
| 21 libraries = () | |
| 22 calling_conv = 'c' |
