void-packages/srcpkgs/postfix/patches/fix-building-on-musl.patch
2016-02-07 08:55:21 -06:00

13 lines
445 B
Diff

diff --git src/util/sys_defs.h src/util/sys_defs.h
index 5b381af..416676e 100644
--- src/util/sys_defs.h
+++ src/util/sys_defs.h
@@ -812,7 +812,7 @@ extern int initgroups(const char *, int);
#define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)) \
- || (__GLIBC__ < 2)
+ || (defined(__GLIBC__) && (__GLIBC__ < 2))
#define CANT_USE_SEND_RECV_MSG
#define DEF_SMTP_CACHE_DEMAND 0
#else