From ce1ec9d4e27d4e08ef02e4e96818263d3ff2eecc Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 30 Mar 2012 14:07:05 +1100 Subject: - (djm) [openbsd-compat/bsd-cygwin_util.h] #undef _WIN32 to avoid incorrect assumptions when building on Cygwin; patch from Corinna Vinschen --- openbsd-compat/bsd-cygwin_util.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'openbsd-compat/bsd-cygwin_util.h') diff --git a/openbsd-compat/bsd-cygwin_util.h b/openbsd-compat/bsd-cygwin_util.h index 48f64b740..d223792d7 100644 --- a/openbsd-compat/bsd-cygwin_util.h +++ b/openbsd-compat/bsd-cygwin_util.h @@ -1,4 +1,4 @@ -/* $Id: bsd-cygwin_util.h,v 1.13 2011/08/17 01:31:09 djm Exp $ */ +/* $Id: bsd-cygwin_util.h,v 1.14 2012/03/30 03:07:07 djm Exp $ */ /* * Copyright (c) 2000, 2001, 2011 Corinna Vinschen @@ -40,6 +40,12 @@ #include #include +/* Make sure _WIN32 isn't defined later in the code, otherwise headers from + other packages might get the wrong idea about the target system. */ +#ifdef _WIN32 +#undef _WIN32 +#endif + int binary_open(const char *, int , ...); int check_ntsec(const char *); char **fetch_windows_environment(void); -- cgit v1.2.3