Hi!

______________O\_/_________________________________\_/O______________
        d:\lang\tc\tcc -c -Id:\lang\tc\include -I..\hdr -DFORSYS -DWITHFAT32 
-Ld:\lang\tc\lib -mt -a- -k- -f- -ff- -O -Z -d talloc.c
Turbo C  Version 2.01  Copyright (c) 1987, 1988 Borland International
talloc.c:
Error talloc.c 21: Type mismatch in redeclaration of '__brklvl'
Warning talloc.c 66: Non-portable pointer assignment in function malloc
Warning talloc.c 80: Non-portable pointer assignment in function malloc
_____________________________________________________________________
              O/~\                                 /~\O

Patch:

______________O\_/_________________________________\_/O______________
diff -ruNp old/sys/talloc.c new/sys/talloc.c
--- old/sys/talloc.c    2004-03-17 14:06:50.000000000 +0000
+++ new/sys/talloc.c    2004-05-10 18:59:24.000000000 +0000
@@ -18,12 +18,12 @@
 #include <string.h>

 #ifdef __TURBOC__
-extern void *__brklvl;
-#define sbrk(x) __brklvl
+extern unsigned __brklvl;
+#define sbrk(x) ((void*)__brklvl)
 #define brk(newbrk) \
        (((char *)(newbrk) > (char *)(&length) - 0x200) ? \
                -1 : \
-               (__brklvl = (newbrk), 0))
+               (__brklvl = (unsigned)(newbrk), 0))
 #endif

 #ifdef __WATCOMC__
_____________________________________________________________________
              O/~\                                 /~\O

PS: I not found this bug earlier, because I was compile my own edition of
SYS.




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to