wineserver: return the version information in the same format as wine --version

Austin English austinenglish at gmail.com
Fri Oct 1 03:16:46 CDT 2010


For http://bugs.winehq.org/show_bug.cgi?id=13181

-- 
-Austin
-------------- next part --------------
diff --git a/server/main.c b/server/main.c
index a59350b..2d841e8 100644
--- a/server/main.c
+++ b/server/main.c
@@ -36,6 +36,7 @@
 #include "file.h"
 #include "thread.h"
 #include "request.h"
+#include "wine/library.h"
 
 /* command-line options */
 int debug_level = 0;
@@ -107,7 +108,7 @@ static void parse_args( int argc, char *argv[] )
                     master_socket_timeout = TIMEOUT_INFINITE;
                 break;
             case 'v':
-                fprintf( stderr, "%s\n", PACKAGE_STRING );
+                fprintf( stderr, "%s\n", wine_get_build_id());
                 exit(0);
             case 'w':
                 wait_for_lock();


More information about the wine-patches mailing list