*/
/* This is a complete rewrite, some code snarfed from unexnt.c and
- unexec.c, Andy Piper (andyp@parallax.co.uk) 13-1-98 */
+ unexec.c, Andy Piper (andy@xemacs.org) 13-1-98 */
#include <stdio.h>
#include <stdlib.h>
#else
#undef CONST
-#include <windows.h>
+#ifndef MAX_PATH
+#define MAX_PATH 260
+#endif
#include <a.out.h>
#define ALLOC_UNIT 0xFFFF
void* empty_space;
extern int static_heap_dumped;
SCNHDR section;
- /* calculate new sizes f_ohdr.dsize is the total initalized data
+ /* calculate new sizes f_ohdr.dsize is the total initialized data
size on disk which is f_data.s_size + f_idata.s_size.
f_ohdr.data_start is the base addres of all data and so should
not be changed. *.s_vaddr is the virtual address of the start