diff options
author | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-10-03 13:51:18 +0000 |
---|---|---|
committer | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-10-03 13:51:18 +0000 |
commit | 2b81b2630c8e38cad4c89d4eca3ad30ed87ce200 (patch) | |
tree | 88d6fb0e9f43d05c16b5b88f7ba95cc26a4c37aa /build | |
parent | 8b8c11ade5ae3bfb7e8f07e3b35b40b04ac6c7af (diff) | |
download | libapr-2b81b2630c8e38cad4c89d4eca3ad30ed87ce200.tar.gz |
More portable solution to this type mess, extensible to other \r\n platforms
Backport of r892028 from trunk.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1528866 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/apr_common.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/apr_common.m4 b/build/apr_common.m4 index 50dbfacba..6b5c0f033 100644 --- a/build/apr_common.m4 +++ b/build/apr_common.m4 @@ -468,9 +468,14 @@ AC_MSG_CHECKING(size of $2) AC_CACHE_VAL(AC_CV_NAME, [AC_TRY_RUN([#include <stdio.h> $1 +#ifdef WIN32 +#define binmode "b" +#else +#define binmode +#endif main() { - FILE *f=fopen("conftestval", "w"); + FILE *f=fopen("conftestval", "w" binmode); if (!f) exit(1); fprintf(f, "%d\n", sizeof($2)); exit(0); |