Applied patch from Anton Blanchard:
extern int errno is not allowed, we must include errno.h
8 files changed