Mercurial > hg > CbC > CbC_gcc
diff libiberty/xmalloc.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
line wrap: on
line diff
--- a/libiberty/xmalloc.c Sun Aug 21 07:07:55 2011 +0900 +++ b/libiberty/xmalloc.c Fri Oct 27 22:46:09 2017 +0900 @@ -1,5 +1,5 @@ /* memory allocation routines with error checking. - Copyright 1989, 90, 91, 92, 93, 94 Free Software Foundation, Inc. + Copyright (C) 1989-2017 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 @@ #endif #include "ansidecl.h" #include "libiberty.h" +#include "environ.h" #include <stdio.h> @@ -117,7 +118,6 @@ xmalloc_failed (size_t size) { #ifdef HAVE_SBRK - extern char **environ; size_t allocated; if (first_break != NULL)