diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-11-28 23:19:39 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-11-28 23:19:39 +0000 |
commit | 058ad2697eb88a317332bc26118355ad45d79bd2 (patch) | |
tree | 693a46ad3b46a3b890c02ce59997a85dd9f11926 /sim/ppc/emul_unix.c | |
parent | 2f79d9fdde630e03dd0ab791807b09259bd6b666 (diff) | |
download | gdb-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.c | 4 |
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 |