You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2009/06/01 14:21:49 UTC

svn commit: r780629 - in /httpd/mod_ftp/trunk/modules/ftp: ftp_commands.c ftp_protocol.h ftp_util.c

Author: jim
Date: Mon Jun  1 12:21:48 2009
New Revision: 780629

URL: http://svn.apache.org/viewvc?rev=780629&view=rev
Log:
More compile-time warnings... protect with normal checks

Modified:
    httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c
    httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.h
    httpd/mod_ftp/trunk/modules/ftp/ftp_util.c

Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c?rev=780629&r1=780628&r2=780629&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_commands.c Mon Jun  1 12:21:48 2009
@@ -33,9 +33,13 @@
 #endif
 
 #ifdef HAVE_FCHMOD
+#if APR_HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
+#if HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
+#endif
 
 /* Wish APR had one of these */
 #if defined(WIN32) || defined(USE_WINSOCK)

Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.h
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.h?rev=780629&r1=780628&r2=780629&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.h (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_protocol.h Mon Jun  1 12:21:48 2009
@@ -6,7 +6,7 @@
  * another gmake (or a make ftp_protocol.h)
  *
  * Generated from ../.. on 
- * Mon Jun  1 12:15:30 2009
+ * Mon Jun  1 12:20:41 2009
  */
 
 

Modified: httpd/mod_ftp/trunk/modules/ftp/ftp_util.c
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/modules/ftp/ftp_util.c?rev=780629&r1=780628&r2=780629&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/modules/ftp/ftp_util.c (original)
+++ httpd/mod_ftp/trunk/modules/ftp/ftp_util.c Mon Jun  1 12:21:48 2009
@@ -25,8 +25,9 @@
 #include "apr_fnmatch.h"
 #include "ap_mpm.h"             /* For MPM query interface */
 
+#if HAVE_SYS_STAT_H
 #include <sys/stat.h>           /* For file perms */
-
+#endif
 
 /* Warning; the *arg is consumed, manipulated and must have the same lifetime
  * as the desired *addr results!