mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 09:40:05 +02:00
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
From 36f8d208158ac35c6246540772e3d818d9a66ce3 Mon Sep 17 00:00:00 2001
|
|
From: Panagiotis Vasilopoulos <hello@alwayslivid.com>
|
|
Date: Sat, 28 Dec 2019 15:37:58 +0200
|
|
Subject: Fixed help2man
|
|
|
|
|
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
index 5dd747a..127ac6f 100644
|
|
--- a/src/Makefile.am
|
|
+++ b/src/Makefile.am
|
|
@@ -39,4 +39,4 @@ u2f-host.1: $(srcdir)/u2f-host.c $(srcdir)/cmdline.ggo $(top_srcdir)/configure.a
|
|
$(AM_V_GEN)$(HELP2MAN) \
|
|
--output=$@ $(builddir)/u2f-host$(EXEEXT) \
|
|
--name="Yubico Universal 2nd Factor (U2F) Host Tool" \
|
|
- --no-info
|
|
+ --no-info --no-discard-stderr
|
|
--
|
|
2.37.3
|
|
|
|
|
|
From 840f01135d2892f45e71b9e90405de587991bd03 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
|
|
Date: Mon, 13 Apr 2020 14:12:25 +0200
|
|
Subject: [PATCH] Add support for upcoming json-c 0.14.0.
|
|
|
|
TRUE/FALSE are not defined anymore. 1 and 0 are used instead.
|
|
---
|
|
u2f-host/u2fmisc.c | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
|
|
diff --git a/u2f-host/u2fmisc.c b/u2f-host/u2fmisc.c
|
|
index e40ca3d..5a032ce 100644
|
|
--- a/u2f-host/u2fmisc.c
|
|
+++ b/u2f-host/u2fmisc.c
|
|
@@ -33,6 +33,19 @@ typedef int json_bool;
|
|
#define u2fh_json_object_object_get(obj, key, value) (value = json_object_object_get(obj, key)) == NULL ? (json_bool)FALSE : (json_bool)TRUE
|
|
#endif
|
|
|
|
+/* json-c 0.13.99 does not define TRUE/FALSE anymore
|
|
+ * the json-c maintainers replaced them with pure 1/0
|
|
+ * https://github.com/json-c/json-c/commit/0992aac61f8b
|
|
+ */
|
|
+#if defined JSON_C_VERSION_NUM && JSON_C_VERSION_NUM >= ((13 << 8) | 99)
|
|
+#ifndef FALSE
|
|
+#define FALSE 0
|
|
+#endif
|
|
+#ifndef TRUE
|
|
+#define TRUE 1
|
|
+#endif
|
|
+#endif
|
|
+
|
|
static void
|
|
dumpHex (unsigned char *data, int offs, int len)
|
|
{
|
|
--
|
|
2.26.0
|
|
|