#define errno (*__errno()) This is necessary to make non-threaded libraries (e.g. libX11) continue to work correctly when linked with -lpthread. glibc also does this.
their canonical places.