aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/mm.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/mm.c
parentced7a2cc9a1c664fa6ff530b5598243843178390 (diff)
downloadfsf-binutils-gdb-9365c12ca38698e3b3c5653080714f526204982e.zip
fsf-binutils-gdb-9365c12ca38698e3b3c5653080714f526204982e.tar.gz
fsf-binutils-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/mm.c')
-rw-r--r--mmalloc/mm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mmalloc/mm.c b/mmalloc/mm.c
index b555f09..d487e0c 100644
--- a/mmalloc/mm.c
+++ b/mmalloc/mm.c
@@ -4,7 +4,7 @@
behavior. It should also still be possible to build the library
as a standard library with multiple objects.
- Copyright 1996 Free Software Foundation
+ Copyright 1996, 2000 Free Software Foundation
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -21,6 +21,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 lseek, sbrk (maybe) */
+#endif
#include "mcalloc.c"
#include "mfree.c"
#include "mmalloc.c"