* configure.ac (USE_WIN32API): Define it.

* configure.in: Regenerate.
	* config.in: Likewise.
	* emul_netbsd.c (write_timezone): Guard with HAVE_GETTIMEOFDAY.
	* emul_unix.c (do_unix_mkdir): Handle Win32 1-argument mkdir.
This commit is contained in:
Mark Mitchell
2005-11-28 23:19:39 +00:00
parent 2f79d9fdde
commit 058ad2697e
6 changed files with 167 additions and 71 deletions

View File

@ -730,7 +730,11 @@ do_unix_mkdir(os_emul_data *emul,
if (WITH_TRACE && ppc_trace[trace_os_emul])
printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode);
#ifdef USE_WIN32API
status = mkdir(path);
#else
status = mkdir(path, mode);
#endif
emul_write_status(processor, status, errno);
}
#endif