[kaffe] config/config-mem.h
Timothy Stack
stack at cs.utah.edu
Thu May 1 12:24:02 PDT 2003
>
> Hi tim,
hi,
> The story for supporting old linux reminds me one more problem for them.
>
> In 'config/config-mem.h', there is a external definition for 'swab'
> and it uses 'ssize_t' type for its argument. Unfortunately (again)
> this is not defined in old linux (ala 2.2.5), and everytime I replace
> ssize_t to size_t. Some person kindly leave original in comment, so
> it's a simple matter to move comment...
>
> But, I hope this can also be tested by configure.
Can you apply this diff and see if it works for you?
--- config/config-mem.h 5 Dec 2002 00:30:49 -0000 1.7
+++ config/config-mem.h 1 May 2003 19:21:42 -0000
@@ -46,10 +46,11 @@
/*
* Some systems (Linux) do not declare swab in any standard header file
*/
-/*
-extern void swab(const void *from, void *to, size_t n);
-*/
+#if defined(_SSIZE_T)
extern void swab(const void *from, void *to, ssize_t n);
+#else
+extern void swab(const void *from, void *to, size_t n);
+#endif
#endif
#endif
> Kiyo
thanks,
tim
More information about the kaffe
mailing list