summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorManuel Bentele2020-10-19 16:14:41 +0200
committerManuel Bentele2020-10-19 16:16:58 +0200
commitc6a843122ad60fff05e7daa2f7b30abc2ec101e9 (patch)
treeaa60daa34b282165f1a70c4654d84530cbd53fa2 /inc
parent[BUILD] build Linux kernel module only on Linux systems (diff)
downloaddnbd3-c6a843122ad60fff05e7daa2f7b30abc2ec101e9.tar.gz
dnbd3-c6a843122ad60fff05e7daa2f7b30abc2ec101e9.tar.xz
dnbd3-c6a843122ad60fff05e7daa2f7b30abc2ec101e9.zip
[BUILD] set build type and stop Release build if repository is dirty
Diffstat (limited to 'inc')
-rw-r--r--inc/dnbd3/types.h4
-rw-r--r--inc/dnbd3/version.h.in3
2 files changed, 4 insertions, 3 deletions
diff --git a/inc/dnbd3/types.h b/inc/dnbd3/types.h
index c7f335b..63e182c 100644
--- a/inc/dnbd3/types.h
+++ b/inc/dnbd3/types.h
@@ -99,7 +99,7 @@
(a).cmd = net_order_16((a).cmd); \
(a).size = net_order_32((a).size); \
} while (0)
-#define ENDIAN_MODE "Big Endian"
+#define DNBD3_ENDIAN_MODE "Big Endian"
#define DNBD3_BIG_ENDIAN
#elif defined(__LITTLE_ENDIAN__) || (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN) || (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || defined(__i386__) || defined(__i386) || defined(__x86_64)
#define dnbd3_packet_magic ((uint16_t)( (0x73) | (0x72 << 8) ))
@@ -109,7 +109,7 @@
#define net_order_16(a) (a)
#define fixup_request(a) while(0)
#define fixup_reply(a) while(0)
-#define ENDIAN_MODE "Little Endian"
+#define DNBD3_ENDIAN_MODE "Little Endian"
#define DNBD3_LITTLE_ENDIAN
#else
#error "Unknown Endianness"
diff --git a/inc/dnbd3/version.h.in b/inc/dnbd3/version.h.in
index 4a88cf0..cdeed20 100644
--- a/inc/dnbd3/version.h.in
+++ b/inc/dnbd3/version.h.in
@@ -4,6 +4,7 @@
#ifndef VERSION_H_
#define VERSION_H_
-#define DNBD3_VERSION "@DNBD3_VERSION@"
+#define DNBD3_BUILD_VERSION "@DNBD3_BUILD_VERSION@"
+#define DNBD3_BUILD_TYPE "@DNBD3_BUILD_TYPE@"
#endif /* VERSION_H_ */