You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
730 B

  1. This patch fixes the runtime error when libmilter is used with Postfix:
  2. "unix_send_fd: your system has no support for file descriptor passing"
  3. The issue has been fixed upstream in 20170618 update to Postfix v.3.3:
  4. http://postfix.1071664.n5.nabble.com/Fix-check-for-file-descriptor-passing-td90983.html
  5. This patch must be removed before compiling Postfix v.3.3.*
  6. --- a/src/util/sys_defs.h
  7. +++ b/src/util/sys_defs.h
  8. @@ -804,7 +804,7 @@ extern int initgroups(const char *, int)
  9. #define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
  10. #endif
  11. #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)) \
  12. - || (__GLIBC__ < 2)
  13. + || (defined(__GLIBC__) && __GLIBC__ < 2)
  14. #define CANT_USE_SEND_RECV_MSG
  15. #define DEF_SMTP_CACHE_DEMAND 0
  16. #else