From 8d52f788755a9666e7053c2d411fec069f5afc4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dan=20Hor=C3=A1k?= Date: Sat, 25 Jan 2014 14:15:24 +0100 Subject: [PATCH] fix build without libsigrokdecode When built with libsigrokdecode additional headers are automagically included via the Python.h header. When built without they must included explicitly. --- input.c | 4 ++++ main.c | 1 + sigrok-cli.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/input.c b/input.c index 5650b9f..4d3f358 100644 --- a/input.c +++ b/input.c @@ -19,6 +19,10 @@ #include "sigrok-cli.h" #include "config.h" +#include +#include +#include +#include #include extern gchar *opt_input_file; diff --git a/main.c b/main.c index 9ab3f77..5dcee2c 100644 --- a/main.c +++ b/main.c @@ -19,6 +19,7 @@ #include "sigrok-cli.h" #include "config.h" +#include #include struct sr_context *sr_ctx = NULL; diff --git a/sigrok-cli.h b/sigrok-cli.h index 7a05fc4..4d2f0f2 100644 --- a/sigrok-cli.h +++ b/sigrok-cli.h @@ -54,6 +54,7 @@ void run_session(void); void load_input_file(void); /* decode.c */ +#ifdef HAVE_SRD int register_pds(const char *opt_pds, char *opt_pd_annotations); int setup_pd_stack(char *opt_pds, char *opt_pd_stack, char *opt_pd_annotations); int setup_pd_annotations(char *opt_pd_annotations); @@ -62,6 +63,7 @@ int setup_pd_binary(char *opt_pd_binary); void show_pd_annotations(struct srd_proto_data *pdata, void *cb_data); void show_pd_meta(struct srd_proto_data *pdata, void *cb_data); void show_pd_binary(struct srd_proto_data *pdata, void *cb_data); +#endif /* parsers.c */ GSList *parse_probestring(struct sr_dev_inst *sdi, const char *probestring); -- 2.30.2