Yahoo Groups archive

Milter-greylist

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

Message

[milter-greylist] missing strndup

2013-09-04 by Bruncsak, Attila

Hello,

On my system there is no strndup function.
I got compilation warning (missing function prototype)
and linking error.

On an other system I found the following info (Linux man page of strndup):

CONFORMING TO
       strdup() conforms to SVr4, 4.3BSD, POSIX.1-2001.  strndup(), strdupa(), and strndupa() are GNU extensions.

Is there a way that the configure script checks for it  (inject HAVE_STRNDUP macro),
and if there is no such function a small additional function in milter-greylist.c?

Best,
Attila

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.