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
- leonardoMessage
Socket address structure length detection
2016-04-28 by Leonardo Arena
Attachments
- No local attachments were found for this message.