Original change here https://github.com/andrewlow/node/commit/8f0861197b8d70a1b6acc439d32f426832cc81e4

AIX doesn't fail like Linux does for a directory read. This code causes AIX to behave like Linux.