From 03c7b1a21c110f7ecfb87adbe8b9dfedad7fe8ad Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 30 Apr 2006 13:23:45 +0000 Subject: [PATCH] Handle preprocessor define VERSION not being present --- src/yaz-proxy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 2c35be0..775f470 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy.cpp,v 1.63 2006-04-27 00:04:42 adam Exp $ +/* $Id: yaz-proxy.cpp,v 1.64 2006-04-30 13:23:45 adam Exp $ Copyright (c) 1998-2006, Index Data. This file is part of the yazproxy. @@ -3698,7 +3698,9 @@ void Yaz_ProxyClient::recv_Z_PDU(Z_APDU *apdu, int len) *imv1 = '\0'; if (imv0) strcat(imv1, imv0); +#ifdef VERSION strcat(imv1, "/" VERSION); +#endif ir->implementationVersion = imv1; // apply YAZ Proxy implementation name -- 1.7.10.4