comparison lang/pypy3/files/patch-rpython_rlib___rsocket__rffi.py @ 120:3b09db02a788

Move the old lang/pypy3 repo into the lang/pypy3 folder
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 12 Jan 2024 09:23:35 +0100
parents files/patch-rpython_rlib___rsocket__rffi.py@cf8f8a3eea6b
children
comparison
equal deleted inserted replaced
119:cbf8c9785be8 120:3b09db02a788
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'