aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/emul_netbsd.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_netbsd.c
parent2f79d9fdde630e03dd0ab791807b09259bd6b666 (diff)
downloadfsf-binutils-gdb-058ad2697eb88a317332bc26118355ad45d79bd2.zip
fsf-binutils-gdb-058ad2697eb88a317332bc26118355ad45d79bd2.tar.gz
fsf-binutils-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_netbsd.c')
-rw-r--r--sim/ppc/emul_netbsd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c
index 18ca73b..0069064 100644
--- a/sim/ppc/emul_netbsd.c
+++ b/sim/ppc/emul_netbsd.c
@@ -43,7 +43,6 @@
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
-#include <sys/errno.h>
#include <sys/param.h>
#include <sys/time.h>
@@ -224,7 +223,7 @@ write_timeval(unsigned_word addr,
emul_write_buffer(&t, addr, sizeof(t), processor, cia);
}
-
+#ifdef HAVE_GETTIMEOFDAY
STATIC_INLINE_EMUL_NETBSD void
write_timezone(unsigned_word addr,
struct timezone tz,
@@ -235,7 +234,7 @@ write_timezone(unsigned_word addr,
H2T(tz.tz_dsttime);
emul_write_buffer(&tz, addr, sizeof(tz), processor, cia);
}
-
+#endif
#ifdef HAVE_GETDIRENTRIES
STATIC_INLINE_EMUL_NETBSD void