[kaffe] config/config-mem.h

Kiyo Inaba inaba@src.ricoh.co.jp
Mon May 5 06:42:01 2003


Hi, Tim,

you wrote
> 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

It works (can be compiled) for m68k-linux-2.0.7, but on i386-linux-2.2.5
(or more precisely, RedHat7.2), still else frase is used. The later has
'ssize_t' defined in '/usr/include/unistd.h' but I am afraid '_SSIZE_T'
is not defined.

Any better idea?

Kiyo