Include errno.h, and declare errno if not defined. (memcoll): Set errno to zero if there is no error.