freeswitch-stable: backport apr fix
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 22 Jul 2018 07:29:20 +0000 (09:29 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 22 Jul 2018 07:29:22 +0000 (09:29 +0200)
commitf6f229b1f20fd172150cb3f90a5fcbb8082015ea
tree9a622ed8be9a6e1ad77b58815f6f004489804f20
parent367854557b470a1d5b00b81de0e60e18abb2c454
freeswitch-stable: backport apr fix

Backport from master.

The macro APR_TRY_COMPILE_NO_WARNING included in apr/apr-util is
incorrect. It results in extra brackets being put into conftest.c, for
example:

  #include "confdefs.h"

[
  #include <stddef.h>
  #include <iconv.h>
  ]
int main(int argc, const char *const *argv) {
[
  iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);
  ]
  return 0; }

The test always fails with:

error: expected identifier or '(' before '[' token

The following checks are affected:

- variable length arrays
- type of inbuf parameter to iconv

Fix from upstream (Apache).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/freeswitch-stable/patches/360-fix-APR_TRY_COMPILE_NO_WARNING.patch [new file with mode: 0644]