You need to #define MAXBUFSIZE if you want to use:
char buf[MAXBUFSIZE];
A patch is included, but I am not sure if that is what you want.
Andreas