Backport of r1481677, r1494317, r1488496.
Reviewed by: fuankg, gsmith, minfrin
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1494568 13f79535-47bb-0310-9956-
ffa450edef68
#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
#if APR_HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if APR_HAVE_IO_H
+#include <io.h>
+#endif
-#ifdef WIN32
-#include <conio.h>
-#define unlink _unlink
+#ifdef _MSC_VER
+#define write _write
#endif
apr_file_t *errfile;
* limitations under the License.
*/
+#ifndef _PASSWD_COMMON_H
+#define _PASSWD_COMMON_H
+
#include "apr.h"
#include "apr_lib.h"
#include "apr_strings.h"
* Make a password record from the given information.
*/
int mkhash(struct passwd_ctx *ctx);
+
+#endif /* _PASSWD_COMMON_H */
+