DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30103>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30103

APR tests do not compile with MSVC++

           Summary: APR tests do not compile with MSVC++
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: APR test
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


This patch needs to go in to make the APR tests compile
with MSVC++.


Index: Makefile.win
===================================================================
RCS file: /home/cvspublic/apr/test/Makefile.win,v
retrieving revision 1.21
diff -u -r1.21 Makefile.win
--- Makefile.win        9 Apr 2004 02:03:12 -0000       1.21
+++ Makefile.win        8 Jul 2004 21:40:01 -0000
@@ -78,7 +78,7 @@
 testmutexscope.exe: testmutexscope.obj $(LOCAL_LIBS)
        $(LINK) testmutexscope.obj $(LOCAL_LIBS) $(ALL_LIBS)

-TESTS = testall.obj testtime.obj teststr.obj testvsn.obj testipsub.obj \
+TESTS = abts.obj testtime.obj teststr.obj testvsn.obj testipsub.obj \
        testmmap.obj testud.obj testtable.obj testsleep.obj testpools.obj \
        testfmt.obj testfile.obj testdir.obj testfileinfo.obj testrand.obj \
        testdso.obj testoc.obj testdup.obj testsockets.obj testproc.obj \
@@ -87,10 +87,10 @@
        testenv.obj testprocmutex.obj testrand2.obj testfnmatch.obj \
         testatomic.obj testflock.obj testshm.obj testsock.obj \
         testglobalmutex.obj teststrnatcmp.obj testfilecopy.obj \
-        testtemp.obj testlfs.obj
+        testtemp.obj testlfs.obj testutil.obj

-testall.exe: $(TESTS) CuTest.obj $(LOCAL_LIBS)
-       $(LINK) /debug /subsystem:console /machine:I386 $(TESTS) CuTest.obj \
+testall.exe: $(TESTS) $(LOCAL_LIBS)
+       $(LINK) /debug /subsystem:console /machine:I386 /out:$@ $(TESTS) \
                $(LOCAL_LIBS) $(ALL_LIBS)


Index: teststr.c
===================================================================
RCS file: /home/cvspublic/apr/test/teststr.c,v
retrieving revision 1.25
diff -u -r1.25 teststr.c
--- teststr.c   30 Jun 2004 11:10:24 -0000      1.25
+++ teststr.c   8 Jul 2004 21:29:29 -0000
@@ -20,6 +20,10 @@
 #include <stdio.h>
 #include <string.h>

+#if APR_HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
 #include "apr_general.h"
 #include "apr_strings.h"
 #include "apr_errno.h"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to