[vlc-commits] MSYS build fix: escape backslash in whoami

John Peterson git at videolan.org
Sun May 27 07:17:05 CEST 2012


vlc | branch: master | John Peterson <john.peterson3 at hotmail.com> | Sun May 27 06:35:02 2012 +0200| [126d1ccc2c3d3faf6ec8e2bf53bae73273025098] | committer: Rafaël Carré

MSYS build fix: escape backslash in whoami

whoami need to escape the backslash in 'pc\user' otherwise src/version.c can't compile.

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=126d1ccc2c3d3faf6ec8e2bf53bae73273025098
---

 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 2eb64c8..15cdc6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4128,7 +4128,7 @@ AC_SUBST(VERSION_MINOR)
 AC_SUBST(VERSION_REVISION)
 AC_SUBST(VERSION_EXTRA)
 AC_SUBST(COPYRIGHT_YEARS)
-AC_DEFINE_UNQUOTED(VLC_COMPILE_BY, "`whoami`", [user who ran configure])
+AC_DEFINE_UNQUOTED(VLC_COMPILE_BY, "`whoami|sed -e's/\\\/\\\\\\\/g'`", [user who ran configure])
 AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -f 2>/dev/null || hostname`", [host which ran configure])
 AC_DEFINE_UNQUOTED(VLC_COMPILER, "`$CC -v 2>&1 | tail -n 1`", [compiler])
 dnl



More information about the vlc-commits mailing list