aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/mmap-sup.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-02-18 01:39:02 +0000
committerAndrew Cagney <cagney@redhat.com>2000-02-18 01:39:02 +0000
commit9365c12ca38698e3b3c5653080714f526204982e (patch)
treeb508443d5a40a82ee5bb90f12d4fb6b996990d6d /mmalloc/mmap-sup.c
parentced7a2cc9a1c664fa6ff530b5598243843178390 (diff)
downloadgdb-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/mmap-sup.c')
-rw-r--r--mmalloc/mmap-sup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mmalloc/mmap-sup.c b/mmalloc/mmap-sup.c
index f278789..d9a61fb 100644
--- a/mmalloc/mmap-sup.c
+++ b/mmalloc/mmap-sup.c
@@ -1,5 +1,5 @@
/* Support for an sbrk-like function that uses mmap.
- Copyright 1992 Free Software Foundation, Inc.
+ Copyright 1992, 2000 Free Software Foundation, Inc.
Contributed by Fred Fish at Cygnus Support. fnf@cygnus.com
@@ -22,6 +22,9 @@ Boston, MA 02111-1307, USA. */
#if defined(HAVE_MMAP)
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> /* Prototypes for lseek */
+#endif
#include <stdio.h>
#include <fcntl.h>
#include <sys/mman.h>