Mercurial > hg > xemacs-beta
diff src/unexalpha.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 84b14dcb0985 |
children | 023b83f4e54b |
line wrap: on
line diff
--- a/src/unexalpha.c Mon Aug 13 11:33:40 2007 +0200 +++ b/src/unexalpha.c Mon Aug 13 11:35:02 2007 +0200 @@ -55,8 +55,6 @@ if (lseek (_fd, _position, L_SET) != _position) \ fatal_unexec (_error_message, _error_arg); -void *sbrk(); - #define EEOF -1 static struct scnhdr *text_section; @@ -83,12 +81,13 @@ }; - /* Define name of label for entry point for the dumped executable. */ #ifndef DEFAULT_ENTRY_ADDRESS #define DEFAULT_ENTRY_ADDRESS __start #endif +EXTERN_C int DEFAULT_ENTRY_ADDRESS (void); + int unexec (char *new_name, char *a_name, @@ -208,7 +207,6 @@ nhdr.aout.bsize = 0; if (entry_address == 0) { - extern int DEFAULT_ENTRY_ADDRESS (void); nhdr.aout.entry = (unsigned long)DEFAULT_ENTRY_ADDRESS; } else