diff options
Diffstat (limited to 'lxde-base/lxdm/files')
-rw-r--r-- | lxde-base/lxdm/files/lxdm-0.5.3-portable-msghdr.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lxde-base/lxdm/files/lxdm-0.5.3-portable-msghdr.patch b/lxde-base/lxdm/files/lxdm-0.5.3-portable-msghdr.patch new file mode 100644 index 000000000000..dc7f8ad016e9 --- /dev/null +++ b/lxde-base/lxdm/files/lxdm-0.5.3-portable-msghdr.patch @@ -0,0 +1,18 @@ +--- a/src/lxcom.c ++++ b/src/lxcom.c +@@ -117,7 +117,15 @@ + char ctrl[/*CMSG_SPACE(sizeof(LXDM_CRED))*/1024]; + struct sockaddr_un peer; + struct iovec v={buf,sizeof(buf)}; +- struct msghdr h={&peer,sizeof(peer),&v,1,ctrl,sizeof(ctrl),0}; ++ struct msghdr h={ ++ .msg_name = &peer, ++ .msg_namelen = sizeof(peer), ++ .msg_iov = &v, ++ .msg_iovlen = 1, ++ .msg_control = ctrl, ++ .msg_controllen = sizeof(ctrl), ++ .msg_flags = 0 ++ }; + struct cmsghdr *cmptr; + int ret; |