This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch committed: #include <errno.h> in generic-morestack-thread.c
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 07 Oct 2011 15:53:45 -0700
- Subject: Patch committed: #include <errno.h> in generic-morestack-thread.c
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 <iant@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 <iant@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"