aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/emul_unix.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-11-28 23:19:39 +0000
committerMark Mitchell <mark@codesourcery.com>2005-11-28 23:19:39 +0000
commit058ad2697eb88a317332bc26118355ad45d79bd2 (patch)
tree693a46ad3b46a3b890c02ce59997a85dd9f11926 /sim/ppc/emul_unix.c
parent2f79d9fdde630e03dd0ab791807b09259bd6b666 (diff)
downloadgdb-058ad2697eb88a317332bc26118355ad45d79bd2.zip
gdb-058ad2697eb88a317332bc26118355ad45d79bd2.tar.gz
gdb-058ad2697eb88a317332bc26118355ad45d79bd2.tar.bz2
* 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.
Diffstat (limited to 'sim/ppc/emul_unix.c')
-rw-r--r--sim/ppc/emul_unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c
index d5e5629..1f63435 100644
--- a/sim/ppc/emul_unix.c
+++ b/sim/ppc/emul_unix.c
@@ -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