You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rj...@apache.org on 2013/10/03 15:51:18 UTC

svn commit: r1528866 - in /apr/apr/branches/1.5.x: ./ build/apr_common.m4

Author: rjung
Date: Thu Oct  3 13:51:18 2013
New Revision: 1528866

URL: http://svn.apache.org/r1528866
Log:
More portable solution to this type mess, extensible to other \r\n platforms

Backport of r892028 from trunk.

Modified:
    apr/apr/branches/1.5.x/   (props changed)
    apr/apr/branches/1.5.x/build/apr_common.m4

Propchange: apr/apr/branches/1.5.x/
------------------------------------------------------------------------------
  Merged /apr/apr/trunk:r892028

Modified: apr/apr/branches/1.5.x/build/apr_common.m4
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/build/apr_common.m4?rev=1528866&r1=1528865&r2=1528866&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/build/apr_common.m4 (original)
+++ apr/apr/branches/1.5.x/build/apr_common.m4 Thu Oct  3 13:51:18 2013
@@ -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);