Hummm, surprise! The patch doesn't work.
Definitively, MinGW+MSYS is like the ugly duckling, but instead of becoming a swan is more likely to become a roast chicken in one of the the Microsoft's ovens.
I believe that APR was never supported very well on mingw+msys. At least, it was not in the last two years since I'm using it.
But hopefully (evidently, you have not checked APR carefully enough!) a full mingw+msys port already exists in bugzilla:
let's hope that project leaders will accept it so that it will be committed soon...
---------- Initial Header -----------
>From : "Pablo Beltran" email@example.com
To : "Paul Querna" firstname.lastname@example.org
Cc : email@example.com
Date : Wed, 24 Dec 2008 02:33:34 +0100
Subject : Re: Apache *PORTABLE* Runtime?
> When it was working... were there dinosaurs jumping on the prairies?
> i would send patches whether I could write them, but the complexity is too
> big for me.
> 2008/12/24 Paul Querna <firstname.lastname@example.org>
> > Pablo Beltran wrote:
> >> Ha, ha ,ha. Not to the MinGW+MSYS platform!
> > Then send patches.
> > At one time APR was working on MinGW+MSYS (although it still was
> > non-trivial to compile), it is possible there has been a regression since
> > the last time we had it working on there.
> > -Paul