comparison lang/pypy2/files/patch-rpython_rlib___rsocket__rffi.py @ 65:9e9df3f25e7d

Move the old imported pypy repo into the lang/pypy2 folder
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 12 Jan 2024 09:18:14 +0100
parents files/patch-rpython_rlib___rsocket__rffi.py@585cf5a218ad
children
comparison
equal deleted inserted replaced
64:4f846c664620 65:9e9df3f25e7d
1 --- rpython/rlib/_rsocket_rffi.py.orig 2023-12-23 15:29:17 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'