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.

96 lines
3.4 KiB

  1. diff -u --recursive dovecot-2.3.1-vanilla/m4/fd_passing.m4 dovecot-2.3.1/m4/fd_passing.m4
  2. --- dovecot-2.3.1-vanilla/m4/fd_passing.m4 2018-06-08 20:02:15.849850956 -0400
  3. +++ dovecot-2.3.1/m4/fd_passing.m4 2018-06-08 20:04:28.947016370 -0400
  4. @@ -8,7 +8,7 @@
  5. CFLAGS="$CFLAGS -DBUGGY_CMSG_MACROS"
  6. fi
  7. - AC_TRY_RUN([
  8. + AC_TRY_LINK([
  9. #include <sys/types.h>
  10. #include <sys/socket.h>
  11. #include <sys/wait.h>
  12. @@ -16,7 +16,7 @@
  13. #include <unistd.h>
  14. #include <fcntl.h>
  15. #include "fdpass.h"
  16. -
  17. + ], [
  18. static
  19. int nopen(void)
  20. {
  21. diff -u --recursive dovecot-2.3.1-vanilla/m4/glibc.m4 dovecot-2.3.1/m4/glibc.m4
  22. --- dovecot-2.3.1-vanilla/m4/glibc.m4 2018-06-08 20:02:15.850850957 -0400
  23. +++ dovecot-2.3.1/m4/glibc.m4 2018-06-08 20:04:00.780981363 -0400
  24. @@ -17,7 +17,7 @@
  25. dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it.
  26. dnl * It may also be broken in AIX.
  27. AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[
  28. - AC_TRY_RUN([
  29. + AC_TRY_LINK([
  30. #define _XOPEN_SOURCE 600
  31. #include <stdio.h>
  32. #include <stdlib.h>
  33. @@ -26,6 +26,7 @@
  34. #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
  35. possibly broken posix_fallocate
  36. #endif
  37. + ], [
  38. int main() {
  39. int fd = creat("conftest.temp", 0600);
  40. int ret;
  41. diff -u --recursive dovecot-2.3.1-vanilla/m4/ioloop.m4 dovecot-2.3.1/m4/ioloop.m4
  42. --- dovecot-2.3.1-vanilla/m4/ioloop.m4 2018-06-08 20:02:15.850850957 -0400
  43. +++ dovecot-2.3.1/m4/ioloop.m4 2018-06-08 20:03:31.666945181 -0400
  44. @@ -4,9 +4,9 @@
  45. if test "$ioloop" = "best" || test "$ioloop" = "epoll"; then
  46. AC_CACHE_CHECK([whether we can use epoll],i_cv_epoll_works,[
  47. - AC_TRY_RUN([
  48. + AC_TRY_LINK([
  49. #include <sys/epoll.h>
  50. -
  51. + ], [
  52. int main()
  53. {
  54. return epoll_create(5) < 1;
  55. diff -u --recursive dovecot-2.3.1-vanilla/m4/mmap_write.m4 dovecot-2.3.1/m4/mmap_write.m4
  56. --- dovecot-2.3.1-vanilla/m4/mmap_write.m4 2018-06-08 20:02:15.850850957 -0400
  57. +++ dovecot-2.3.1/m4/mmap_write.m4 2018-06-08 20:03:27.369939841 -0400
  58. @@ -1,7 +1,7 @@
  59. dnl * If mmap() plays nicely with write()
  60. AC_DEFUN([DOVECOT_MMAP_WRITE], [
  61. AC_CACHE_CHECK([whether shared mmaps get updated by write()s],i_cv_mmap_plays_with_write,[
  62. - AC_TRY_RUN([
  63. + AC_TRY_LINK([
  64. #include <stdio.h>
  65. #include <sys/types.h>
  66. #include <sys/stat.h>
  67. @@ -9,6 +9,7 @@
  68. #include <fcntl.h>
  69. #include <sys/mman.h>
  70. #include <string.h>
  71. + ], [
  72. int main() {
  73. /* return 0 if we're signed */
  74. int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC, 0600);
  75. diff -u --recursive dovecot-2.3.1-vanilla/m4/want_gssapi.m4 dovecot-2.3.1/m4/want_gssapi.m4
  76. --- dovecot-2.3.1-vanilla/m4/want_gssapi.m4 2018-06-08 20:02:15.850850957 -0400
  77. +++ dovecot-2.3.1/m4/want_gssapi.m4 2018-06-08 20:04:13.204996804 -0400
  78. @@ -54,7 +54,7 @@
  79. # does the kerberos library support SPNEGO?
  80. AC_CACHE_CHECK([whether GSSAPI supports SPNEGO],i_cv_gssapi_spnego,[
  81. - AC_TRY_RUN([
  82. + AC_TRY_LINK([
  83. #ifdef HAVE_GSSAPI_H
  84. # include <gssapi.h>
  85. #else
  86. @@ -62,6 +62,7 @@
  87. #endif
  88. #include <krb5.h>
  89. #include <string.h>
  90. + ], [
  91. int main(void) {
  92. OM_uint32 minor_status;
  93. gss_OID_set mech_set;