Building the Linux stub is now completely freestanding of any libc/kernel headers.

committer: mfx <mfx> 1080194907 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2004-03-25 06:08:27 +00:00
parent 23db1d375c
commit a5d8e575bd
4 changed files with 265 additions and 110 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ static __inline__ int xwrite(int fd, const void *buf, int count)
#if 1
extern char *
__attribute__ ((regparm(2), stdcall)) // be ruthless
__attribute__((regparm(2), stdcall)) // be ruthless
upx_itoa(unsigned long v, char *buf);
#else
@@ -131,7 +131,7 @@ static char *
do_mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
{
(void)len; (void)prot; (void)flags; (void)fd; (void)offset;
return mmap((void *)&addr);
return (char *) mmap((void *)&addr);
}