Author: fuankg
Date: Wed Apr 25 03:43:56 2007
New Revision: 532307

URL: http://svn.apache.org/viewvc?view=rev&rev=532307
Log:
make jk_stat() available for all platforms since its called now unconditional 
from other files.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_util.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?view=diff&rev=532307&r1=532306&r2=532307
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Wed Apr 25 03:43:56 2007
@@ -1391,25 +1391,26 @@
 }
 
 
+int jk_stat(const char *f, struct stat * statbuf)
+{
+  int rc;
 /**
  * i5/OS V5R4 expect filename in ASCII for fopen but required them in EBCDIC 
for stat()
  */
 #ifdef AS400_UTF8
-
-int jk_stat(const char *f, struct stat * statbuf)
-{
   char *ptr;
-  int rc;
 
   ptr = (char *)malloc(strlen(f) + 1);
   jk_ascii2ebcdic((char *)f, ptr);
   rc = stat(ptr, statbuf);
   free(ptr);
+#else
+  rc = stat(f, statbuf);
+#endif
 
   return (rc);
 }
 
-#endif
 
 int jk_file_exists(const char *f)
 {



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

Reply via email to