vlc | branch: master | John Peterson <[email protected]> | 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é <[email protected]>

> 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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to