GNOME Bugzilla – Bug 740685
Do not expand tilde on Windows
Last modified: 2014-11-26 14:33:50 UTC
As Windows doesn't have "~" (as the value of $HOME) the code used to expand tilde uses non-portable functions from pwd.h, what causes a break when building libgovirt using MinGW Please, see the attached patch
Created attachment 291455 [details] [review] ovirt-options: Do not expand tilde on Windows As Windows doesn't have "~" (as the value of $HOME) the code used to expand tilde uses non-portable functions from pwd.h, what causes a break when building libgovirt using MinGW
Review of attachment 291455 [details] [review]: ::: govirt/ovirt-options.c @@ +20,3 @@ +#include <glib.h> + Any particular reason for adding this include ?
Review of attachment 291455 [details] [review]: ::: govirt/ovirt-options.c @@ +20,3 @@ +#include <glib.h> + G_OS_WIN32 is defined in glib.h, that's the reason of this include. Would you like a comment like "Needed for G_OS_WIN32." right above the include?
Review of attachment 291455 [details] [review]: ::: govirt/ovirt-options.c @@ +20,3 @@ +#include <glib.h> + Nope, no need for that, makes sense now, thanks ;)
Attachment 291455 [details] pushed as 41686bc - ovirt-options: Do not expand tilde on Windows