Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Socket address structure length detection

2016-04-28 by Leonardo Arena

Hi all,

I'm porting milter-graylist to Alpine Linux (based on musl libc) and it
seems to me that sockaddr structure length is detected although isn't
present:


milter-greylist.c: In function 'real_connect':
milter-greylist.c:386:25: error: 'struct sockaddr_in' has no member
named 'sin_len'
    SA4(&priv->priv_addr)->sin_len = priv->priv_addrlen;


config.h has HAVE_SA_LEN defined:


(edge-x86_64) ~/aports/testing/milter-greylist/src/milter-greylist-4.4.3
$ grep HAVE_SA_LEN config.h
#define HAVE_SA_LEN /**/



If I comment it out, it compiles just fine.


I have very limited knowledge of autotools and C. Could anyone provide a
patch to properly detect socket address struct length support?

Or maybe I'm completely off-track?

Thank you

- leonardo

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.