Hi,
This patch is needed for libsigrok to compile without errors on FreeBSD
/Uffe
>From e8619c6799ebb45bb3258f5497aef804eec758d3 Mon Sep 17 00:00:00 2001
From: Uffe Jakobsen <[email protected]>
Date: Wed, 31 Dec 2014 00:32:44 +0100
Subject: [PATCH] Fix compile error on FreeBSD
---
src/hardware/testo/api.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/hardware/testo/api.c b/src/hardware/testo/api.c
index 58a5159..387f657 100644
--- a/src/hardware/testo/api.c
+++ b/src/hardware/testo/api.c
@@ -20,6 +20,11 @@
#include <string.h>
#include "protocol.h"
+#if defined(__FreeBSD__)
+#include <stdbool.h>
+#define libusb_has_capability(x) false
+#endif
+
#define SERIALCOMM "115200/8n1"
SR_PRIV struct sr_dev_driver testo_driver_info;
--
2.2.1
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel