The file libgcc/generic-morestack-thread.c refers to EAGAIN, so for cleanliness it should really #include <errno.h>. This does not introduce any new build problems, as generic-morestack.c already #includes <errno.h> anyhow. This patch adds the #include. Bootstrapped and tested on x86_64-unknown-linux-gnu. Committed to mainline.
Ian 2011-10-07 Ian Lance Taylor <i...@google.com> * generic-morestack-thread.c: #include <errno.h>.
Index: generic-morestack-thread.c =================================================================== --- generic-morestack-thread.c (revision 179665) +++ generic-morestack-thread.c (working copy) @@ -1,5 +1,5 @@ /* Thread library support for -fsplit-stack. */ -/* Copyright (C) 2009, 2010 Free Software Foundation, Inc. +/* Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Ian Lance Taylor <i...@google.com>. This file is part of GCC. @@ -36,6 +36,7 @@ see the files COPYING3 and COPYING.RUNTI #ifndef inhibit_libc +#include <errno.h> #include <pthread.h> #include "generic-morestack.h"