[pfx] PATCH: postfix 3.11.2 build failed with musl lib on linux
Wietse Venema via Postfix-users <[email protected]> Wed, 13 May 2026 10:05:42 -0400 (EDT)
| Newsgroups | gmane.mail.postfix.user |
|---|---|
| Message-ID | <[email protected]> |
Changqing Li via Postfix-users: > [snip of src/util/sys_defs.h] > > #if HAVE_GLIBC_API_VERSION_SUPPORT(2, 1) > #define SOCKADDR_SIZE socklen_t > #define SOCKOPT_SIZE socklen_t > #else > #define NO_SNPRINTF > #endif > > For musl lib, #else branch is selected, so NO_SNPRINTF is defined, and > in vbuf_print.c, if NO_SNPRINTF is defined, Please try the patch below. Wietse diff '--exclude=man' '--exclude=html' '--exclude=README_FILES' '--exclude=INSTALL' --no-dereference -r -ur /var/tmp/postfix-3.11.2/src/util/sys_defs.h ./src/util/sys_defs.h --- /var/tmp/postfix-3.11.2/src/util/sys_defs.h 2026-05-01 14:55:47.000000000 -0400 +++ ./src/util/sys_defs.h 2026-05-13 10:02:10.406636873 -0400 @@ -797,8 +797,6 @@ #if HAVE_GLIBC_API_VERSION_SUPPORT(2, 1) #define SOCKADDR_SIZE socklen_t #define SOCKOPT_SIZE socklen_t -#else -#define NO_SNPRINTF #endif #ifndef NO_IPV6 #define HAS_IPV6 _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]