You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2013/05/13 02:36:41 UTC

svn commit: r1481677 - /httpd/httpd/trunk/support/passwd_common.c

Author: fuankg
Date: Mon May 13 00:36:41 2013
New Revision: 1481677

URL: http://svn.apache.org/r1481677
Log:
Fixed include for Windows.

Modified:
    httpd/httpd/trunk/support/passwd_common.c

Modified: httpd/httpd/trunk/support/passwd_common.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/passwd_common.c?rev=1481677&r1=1481676&r2=1481677&view=diff
==============================================================================
--- httpd/httpd/trunk/support/passwd_common.c (original)
+++ httpd/httpd/trunk/support/passwd_common.c Mon May 13 00:36:41 2013
@@ -24,8 +24,10 @@
 
 #include "apr_md5.h"
 #include "apr_sha1.h"
-#include <time.h>
 
+#if APR_HAVE_TIME_H
+#include <time.h>
+#endif
 #if APR_HAVE_CRYPT_H
 #include <crypt.h>
 #endif
@@ -38,10 +40,8 @@
 #if APR_HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-
-#ifdef WIN32
-#include <conio.h>
-#define unlink _unlink
+#if APR_HAVE_IO_H
+#include <io.h>
 #endif
 
 apr_file_t *errfile;