summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-07 02:43:22 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-07 02:43:22 +0000
commitd7d4e76db5cfda4badf922109153a4114a94546b (patch)
treef3b8c376829897b9bd3dc2fee4301f313ed0b2f0
parent8c14d0dd811aaef1445bdbdc4a91bceebd5e08f2 (diff)
Include <mach/mig_support.h>.
(load_image): Cast second arg to read.
-rw-r--r--boot/boot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/boot.c b/boot/boot.c
index b93879c2..5d4b6d3a 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -33,6 +33,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <varargs.h>
#include <fcntlbits.h>
#include <elf.h>
+#include <mach/mig_support.h>
#include "notify_S.h"
#include "exec_S.h"
@@ -285,7 +286,7 @@ load_image (task_t t,
vm_allocate (mach_task_self (), &buf, bufsz, 1);
lseek (fd, ph->p_offset, SEEK_SET);
- read (fd, buf + offs, ph->p_filesz);
+ read (fd, (void *)(buf + offs), ph->p_filesz);
ph->p_memsz = ((ph->p_vaddr + ph->p_memsz + ph->p_align - 1)
& ~(ph->p_align - 1));