freeswitch-stable: fix APR_TRY_COMPILE_NO_WARNING
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 15 Jul 2018 14:17:32 +0000 (16:17 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 15 Jul 2018 14:34:53 +0000 (16:34 +0200)
commit9d339b9e41826004395c80fae2ed005a73151a13
tree3756517da72fac9e5ad0fe8861ba0a942e64ae4c
parent74070844069de3317fa29c9ef50799459cf71897
freeswitch-stable: fix APR_TRY_COMPILE_NO_WARNING

The macro 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]