X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fbackend.c;h=5be826abaa8352d8314f4ef1128e601dde270838;hb=be64f90b53d09d9720dc6e06ff8ab61d96c03932;hp=5d0a0c9396d35eff2a4a58c3da128a0f846ab541;hpb=731c01f248b8b7b9bd87e6b21ee92f806eff762b;p=libsigrok.git
diff --git a/src/backend.c b/src/backend.c
index 5d0a0c93..5be826ab 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -18,8 +18,8 @@
* along with this program. If not, see .
*/
+#include
#include
-#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */
#include
#include "libsigrok-internal.h"
@@ -510,6 +510,7 @@ SR_API int sr_init(struct sr_context **ctx)
goto done;
}
#endif
+ sr_resource_set_hooks(context, NULL, NULL, NULL, NULL);
*ctx = context;
context = NULL;