aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-30 13:22:05 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-16 00:23:39 +0100
commitd1136ea2fc57e38c94608ad889f70fc3c517055e (patch)
treecd860cf362042bbb5c9876f41c5099357165c36c /nx-X11
parentf64fac47e9b2c3a6cdb49911b25b6f22f811f2f0 (diff)
downloadnx-libs-d1136ea2fc57e38c94608ad889f70fc3c517055e.tar.gz
nx-libs-d1136ea2fc57e38c94608ad889f70fc3c517055e.tar.bz2
nx-libs-d1136ea2fc57e38c94608ad889f70fc3c517055e.zip
Client.h: conditionally add unused field
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Client.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Client.h b/nx-X11/programs/Xserver/hw/nxagent/Client.h
index ac2f34e8b..574466602 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Client.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Client.h
@@ -44,10 +44,15 @@ enum ClientHint
JAVA_WINDOW
};
+/* client byte counting is currently unused */
+#undef COUNT_CLIENT_BYTES
+
typedef struct _PrivClientRec
{
int clientState;
+#ifdef COUNT_CLIENT_BYTES
long clientBytes;
+#endif
enum ClientHint clientHint;
char *clientInfoString;
} PrivClientRec;
@@ -59,8 +64,6 @@ extern int nxagentClientPrivateIndex;
extern void nxagentClientStateCallback(CallbackListPtr *callbacks, void *data, void *args);
-#undef COUNT_CLIENT_BYTES
-
#ifdef COUNT_CLIENT_BYTES
#define nxagentClientAddBytes(pClient, size) \
(nxagentClientPriv(pClient) -> clientBytes += (size))