Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison files/patch-rpython_rlib___rsocket__rffi.py @ 111:cf8f8a3eea6b
Allow to build PyPy3 v7.3.14 on FreeBSD 13.2.
BUGS: Only Python 7.3.9 is currently implemented fully. Python 7.3.10 is only
begun partly.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 08 Jan 2024 09:37:21 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 110:3fa87db3a1a2 | 111:cf8f8a3eea6b |
|---|---|
| 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' |
