--- httping-1.2.9/str.h.orig 2009-07-09 22:26:50.871059895 +0400 +++ httping-1.2.9/str.h 2009-07-09 22:27:32.802079334 +0400 @@ -16,5 +16,6 @@ #include #ifndef strndup +#define strndup _strndup char *strndup(char *in, int size); #endif --- httping-1.2.9/str.c.orig 2009-07-09 22:26:45.417059806 +0400 +++ httping-1.2.9/str.c 2009-07-09 22:27:32.802079334 +0400 @@ -19,6 +19,7 @@ #include "utils.h" #ifndef strndup +#define strndup _strndup char *strndup(char *in, int size) { char *out = mymalloc(size + 1, "strndup");