From 058ad2697eb88a317332bc26118355ad45d79bd2 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Mon, 28 Nov 2005 23:19:39 +0000 Subject: * 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. --- sim/ppc/configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sim/ppc/configure.ac') diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 45aa1e0..c51553f 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -567,6 +567,16 @@ AC_ARG_PROGRAM . ${srcdir}/../../bfd/configure.host +case ${host} in + *mingw32*) + AC_DEFINE(USE_WIN32API, 1, + [Define if we should use the Windows API, instead of the + POSIX API. On Windows, we use the Windows API when + building for MinGW, but the POSIX API when building + for Cygwin.]) + ;; +esac + AC_CONFIG_HEADER(config.h:config.in) AC_STRUCT_ST_BLKSIZE -- cgit v1.1