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/attach.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/attach.c')
-rw-r--r-- | mmalloc/attach.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mmalloc/attach.c b/mmalloc/attach.c index 70cfa6e..2bd70bf 100644 --- a/mmalloc/attach.c +++ b/mmalloc/attach.c @@ -1,5 +1,5 @@ /* Initialization for access to a mmap'd malloc managed region. - Copyright 1992 Free Software Foundation, Inc. + Copyright 1992, 2000 Free Software Foundation, Inc. Contributed by Fred Fish at Cygnus Support. fnf@cygnus.com @@ -24,6 +24,9 @@ Boston, MA 02111-1307, USA. */ #include <fcntl.h> /* After sys/types.h, at least for dpx/2. */ #include <sys/stat.h> #include <string.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> /* Prototypes for lseek */ +#endif #include "mmprivate.h" #ifndef SEEK_SET |