Dnia 10-05-2007, Cz o godzinie 21:34 -0700, Michael Collette napisaĆ(a):
> strndup.c:6: error: syntax error before "size_t"
Please try changing subst/strndup.c to:
#ifndef HAVE_STRNDUP
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stddef.h>
char *strndup(char *str, size_t len)
{
char *dup = (char *)malloc(len+1);
if (dup) {
strncpy(dup,str,len);
dup[len]= '\0';
}
return dup;
}
#endif
--
Tomasz Sterna
Xiaoka Grp. http://www.xiaoka.com/
_______________________________________________
jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com