summaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorSimon Rettberg2020-03-17 13:01:37 +0100
committerSimon Rettberg2020-03-17 13:01:37 +0100
commit2e70a0836173c9502ff5cddd849165d432a883cb (patch)
tree7e96df086ce728755dff66e88f125c8e6cef20fe /src/types.h
parent[SERVER] Don't prefetch across hash blocks in BGS_HASHBLOCK mode (diff)
downloaddnbd3-2e70a0836173c9502ff5cddd849165d432a883cb.tar.gz
dnbd3-2e70a0836173c9502ff5cddd849165d432a883cb.tar.xz
dnbd3-2e70a0836173c9502ff5cddd849165d432a883cb.zip
[SERVER] Include build type and version in RPC
Added new query type q=version, which uses the STATS access rights.
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index cb0ccfd..dc8e501 100644
--- a/src/types.h
+++ b/src/types.h
@@ -34,6 +34,9 @@
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
+#define STRINGIFY(x) #x
+#define TOSTRING(x) STRINGIFY(x)
+
#ifdef __GNUC__
#define UNUSED __attribute__ ((unused))
#else