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 <sys/stat.h> +#include <errno.h> +#include <stdlib.h> +#include <string.h> #include <glib.h> 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 <stdlib.h> #include <glib.h> 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); -- 1.8.1.4 ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

