diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-02-18 01:39:02 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-02-18 01:39:02 +0000 |
commit | 9365c12ca38698e3b3c5653080714f526204982e (patch) | |
tree | b508443d5a40a82ee5bb90f12d4fb6b996990d6d /mmalloc/sbrk-sup.c | |
parent | ced7a2cc9a1c664fa6ff530b5598243843178390 (diff) | |
download | gdb-9365c12ca38698e3b3c5653080714f526204982e.zip gdb-9365c12ca38698e3b3c5653080714f526204982e.tar.gz gdb-9365c12ca38698e3b3c5653080714f526204982e.tar.bz2 |
From 2000-02-17 RodneyBrown@pmsc.com:
mm.c, attach.c, mmap-sup.c, sbrk-sup.c: Include <unistd.h> for sbrk
and lseek declarations.
Diffstat (limited to 'mmalloc/sbrk-sup.c')
-rw-r--r-- | mmalloc/sbrk-sup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mmalloc/sbrk-sup.c b/mmalloc/sbrk-sup.c index da0f7a2..93c078b 100644 --- a/mmalloc/sbrk-sup.c +++ b/mmalloc/sbrk-sup.c @@ -1,5 +1,5 @@ /* Support for sbrk() regions. - Copyright 1992 Free Software Foundation, Inc. + Copyright 1992, 2000 Free Software Foundation, Inc. Contributed by Fred Fish at Cygnus Support. fnf@cygnus.com This file is part of the GNU C Library. @@ -19,6 +19,9 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_UNISTD_H +#include <unistd.h> /* Prototypes for sbrk (maybe) */ +#endif #include <string.h> /* Prototypes for memcpy, memmove, memset, etc */ #include "mmprivate.h" |