aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure.ac
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/configure.ac
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/configure.ac')
-rw-r--r--sim/ppc/configure.ac10
1 files changed, 10 insertions, 0 deletions
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