X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Fxmalloc.c;h=85826c1e10f2e64bbf4c3c60cd23c8bf780f0dff;hb=76deb9291dfc4a20492b9a1093123f6389d6253d;hp=3e97aab563f0e409a3d65a6258ee911e89101eb5;hpb=abf6a75b428517d9caaf9155212b0b10e0379a99;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c index 3e97aab563..85826c1e10 100644 --- a/libiberty/xmalloc.c +++ b/libiberty/xmalloc.c @@ -1,5 +1,5 @@ /* memory allocation routines with error checking. - Copyright 1989, 90, 91, 92, 93, 94 Free Software Foundation, Inc. + Copyright (C) 1989-2021 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -65,6 +65,7 @@ function will be called to print an error message and terminate execution. #endif #include "ansidecl.h" #include "libiberty.h" +#include "environ.h" #include @@ -117,7 +118,6 @@ void xmalloc_failed (size_t size) { #ifdef HAVE_SBRK - extern char **environ; size_t allocated; if (first_break != NULL)