--- apr/file_io/unix/dir.c (revision 489889) +++ apr/file_io/unix/dir.c (working copy) @@ -176,7 +176,7 @@ * that problem. */ if (ret == EINVAL) { - ret = ENOENT; + ret = APR_ENOENT; } #else /* We're about to call a non-thread-safe readdir() that may