libwine: Fix naked getuid() to allow compilation under MinGW.

This commit is contained in:
Paul Millar 2007-11-09 18:07:36 +01:00 committed by Alexandre Julliard
parent 1d9300104e
commit 8d571e28f1
1 changed files with 2 additions and 0 deletions

View File

@ -230,7 +230,9 @@ static void init_paths(void)
} }
} }
if (!S_ISDIR(st.st_mode)) fatal_error( "%s is not a directory\n", config_dir ); if (!S_ISDIR(st.st_mode)) fatal_error( "%s is not a directory\n", config_dir );
#ifdef HAVE_GETUID
if (st.st_uid != getuid()) fatal_error( "%s is not owned by you\n", config_dir ); if (st.st_uid != getuid()) fatal_error( "%s is not owned by you\n", config_dir );
#endif
init_server_dir( st.st_dev, st.st_ino ); init_server_dir( st.st_dev, st.st_ino );
} }