libs/wine/config.c: Fix naked getuid()
Paul Millar
paul at astro.gla.ac.uk
Fri Nov 9 11:07:36 CST 2007
A recent patch broke cross-compilation by including a getuid() outwith the
autoconf-generated macro HAVE_GETUID. This patch "fixes" this by making the
additional test conditional on getuid() being present.
Cheers,
Paul.
ChangeLog:
Fix naked getuid() to allow compilation under MinGW
---
libs/wine/config.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libs/wine/config.c b/libs/wine/config.c
index 860cae2..eb187e5 100644
--- a/libs/wine/config.c
+++ b/libs/wine/config.c
@@ -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 );
+#ifdef HAVE_GETUID
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 );
}
--
1.5.3.5
More information about the wine-patches
mailing list