diff src/unexec.c @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents a300bb07d72d
children 74fd4e045ea6
line wrap: on
line diff
--- a/src/unexec.c	Mon Aug 13 11:06:08 2007 +0200
+++ b/src/unexec.c	Mon Aug 13 11:07:10 2007 +0200
@@ -194,6 +194,7 @@
 # include <stdlib.h>
 # include <unistd.h>
 # include <string.h>
+# include <stddef.h>
 
 # ifdef __lucid
 #  include <sysent.h>
@@ -288,7 +289,7 @@
 
 #ifdef __STDC__
 #ifndef __sys_stdtypes_h
-#ifndef _PTRDIFF_T
+#if !defined(_PTRDIFF_T) && !defined(_BSD_PTRDIFF_T_)
 typedef long ptrdiff_t;
 #endif
 #endif
@@ -968,7 +969,7 @@
 
 #ifdef RISCiX
 
-  /* Acorn's RISC-iX has a wacky way of initialising the position of the heap.
+  /* Acorn's RISC-iX has a wacky way of initializing the position of the heap.
    * There is a little table in crt0.o that is filled at link time with
    * the min and current brk positions, among other things.  When start
    * runs, it copies the table to where these parameters live during