Build fails with mingw-w64 due to re-declaration of apr_filetype_e

Biswapriyo Nath <[email protected]>
Newsgroups gmane.comp.apache.apr.devel
Message-ID <CALK-3m+aq0sKDMFO10EZy9j01CzfOpHtrwxA-SW7WVBse1ZdPQ@mail.gmail.com>
* compiler: gcc version 13.2.0 (Rev2, Built by MSYS2 project)
* Microsoft Windows Version 10.0.19045
* Build command:
./buildconf; mkdir build; cd build
../configure \
--enable-static \
--enable-shared \
--enable-nonportable-atomics \
--with-devrandom=/dev/urandom \
--disable-ipv6

* compiler error:

In file included from ../file_io/unix/copy.c:17:
apr/include/arch/win32/apr_arch_file_io.h:164:3: error: conflicting
types for 'apr_filetype_e'; have 'enum <anonymous>'
  164 | } apr_filetype_e;
      |   ^~~~~~~~~~~~~~
In file included from apr/include/apr_file_io.h:29,
                 from apr/include/arch/win32/apr_arch_file_io.h:26:
apr/include/apr_file_info.h:72:3: note: previous declaration of
'apr_filetype_e' with type 'apr_filetype_e'
   72 | } apr_filetype_e;
      |   ^~~~~~~~~~~~~~

Would it be possible to fix this issue? I can provide additional
information if needed. Please provide any suggestion how to
troubleshoot this issue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.