summaryrefslogtreecommitdiff
path: root/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch')
-rw-r--r--dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch b/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch
new file mode 100644
index 000000000000..a91ee2e2ba42
--- /dev/null
+++ b/dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch
@@ -0,0 +1,13 @@
+Fixes compilation with GCC10.
+
+--- a/ifd/ifd.cpp
++++ b/ifd/ifd.cpp
+@@ -958,7 +958,7 @@
+ else
+ l_atrLength=0;
+ rj=r->IfdPower(mode, Atr, &l_atrLength);
+- switch (rj) {
++ switch (static_cast<NTSTATUS>(rj)) {
+ case STATUS_SUCCESS:
+ DEBUGLUN(Lun, DEBUG_MASK_IFD, "Success (ATR: %d bytes)\n", (int)l_atrLength);
+ rc=IFD_SUCCESS;