Remove extern int errno;. Instead include the ANSI <errno.h>. No functional changes, just a higher level of pedantry.