Work around missing EISDIR errno values.
commitff61d9fc99a60a7c0320538a278d5f58680e120d
authorJohannes Sixt <johannes.sixt@telecom.at>
Fri, 29 Dec 2006 08:03:45 +0000 (29 09:03 +0100)
committerJohannes Sixt <johannes.sixt@telecom.at>
Fri, 19 Jan 2007 15:27:30 +0000 (19 16:27 +0100)
treef73ba4908d0f9171ec943e68868ef47b66a6df50
parent2de27f2cbb43b30d5465be33541c98b453a076e6
Work around missing EISDIR errno values.

Windows does not return EISDIR when a directory is opened as file.
These instances are detected by checking explicitly whether the offending
file is indeed a directory, and then the errno value is adjusted accordingly.
refs.c