From 5dab7f92ce35e0e3591e6dda28977da4949411ac Mon Sep 17 00:00:00 2001 From: Thomas Pfaff Date: Mon, 22 Jan 2001 21:29:53 +0000 Subject: [PATCH] gthr-win32.h: Include errno.h to get a declaration for EINVAL and _mingw.h if... * gthr-win32.h: Include errno.h to get a declaration for EINVAL and _mingw.h if the target is mingw32. From-SVN: r39187 --- gcc/ChangeLog | 5 +++++ gcc/gthr-win32.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 27d7978202b..5e2f57d45a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-01-22 Thomas Pfaff + + * gthr-win32.h: Include errno.h to get a declaration for + EINVAL and _mingw.h if the target is mingw32. + 2001-01-22 Andres Felipe Vargas * cpp.texi: Correct typos. diff --git a/gcc/gthr-win32.h b/gcc/gthr-win32.h index dbe5e5b4f34..7b991385c81 100644 --- a/gcc/gthr-win32.h +++ b/gcc/gthr-win32.h @@ -65,6 +65,10 @@ Boston, MA 02111-1307, USA. */ #define __GTHREADS 1 #include +#include +#ifdef __MINGW32__ +#include <_mingw.h> +#endif #ifdef _LIBOBJC -- 2.30.2