Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-netifaces: fix compilation with GCC14 #25700

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lang/python/python-netifaces/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-netifaces
PKG_VERSION:=0.11.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PYPI_NAME:=netifaces
PKG_HASH:=043a79146eb2907edf439899f262b3dfe41717d34124298ed281139a8b93ca32
Expand Down
23 changes: 23 additions & 0 deletions lang/python/python-netifaces/patches/010-gcc14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- a/netifaces.c
+++ b/netifaces.c
@@ -1801,13 +1801,13 @@ gateways (PyObject *self)
struct sockaddr_nl sanl_from;
struct iovec iov = { msgbuf, bufsize };
struct msghdr msghdr = {
- &sanl_from,
- sizeof(sanl_from),
- &iov,
- 1,
- NULL,
- 0,
- 0
+ .msg_name = &sanl_from,
+ .msg_namelen = sizeof(sanl_from),
+ .msg_iov = &iov,
+ .msg_iovlen = 1,
+ .msg_control = NULL,
+ .msg_controllen = 0,
+ .msg_flags = 0
};
int nllen;

Loading