Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 1 | With autoconf 2.70 confdefs.h is already included. Including it twice generates |
| 2 | compiler warnings and since this macros is to error on warnings, it breaks. |
| 3 | |
| 4 | Fix by not including the file. |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | RP - 2021/1/28 |
| 8 | |
| 9 | Index: apr-1.7.0/build/apr_common.m4 |
| 10 | =================================================================== |
| 11 | --- apr-1.7.0.orig/build/apr_common.m4 |
| 12 | +++ apr-1.7.0/build/apr_common.m4 |
| 13 | @@ -505,8 +505,7 @@ AC_DEFUN([APR_TRY_COMPILE_NO_WARNING], |
| 14 | fi |
| 15 | AC_COMPILE_IFELSE( |
| 16 | [AC_LANG_SOURCE( |
| 17 | - [#include "confdefs.h" |
| 18 | - ] |
| 19 | + [] |
| 20 | [[$1]] |
| 21 | [int main(int argc, const char *const *argv) {] |
| 22 | [[$2]] |