--- libcdio-0.83/test/driver/realpath.c.orig 2012-09-15 05:17:34 +0400 +++ libcdio-0.83/test/driver/realpath.c 2012-09-15 05:27:54 +0400 @@ -54,6 +54,10 @@ #include +#if defined(_WIN32) +# define mkdir(name, mode) mkdir(name) +#endif + #define MY_DIR_SEPARATOR '/' static char * @@ -84,6 +88,7 @@ int main(int argc, const char *argv[]) { +#if !defined(_WIN32) || defined(__CYGWIN__) || defined(__MSYS__) char *psz_tmp_subdir; char *psz_orig_file; char tmp_dir[PATH_MAX+1] = {0}; @@ -93,6 +98,7 @@ unsigned int i_last_slash; char *psz_symlink_file = NULL; + psz_tmp_subdir = get_temporary_name(NULL, "temporary directory"); if (NULL == psz_tmp_subdir) { exit(77); @@ -169,6 +175,8 @@ check_rc(unlink(psz_orig_file), "unlink", psz_orig_file); check_rc(rmdir(psz_tmp_subdir), "rmdir", psz_tmp_subdir); - +#else + exit(77); +#endif return 0; }