summaryrefslogtreecommitdiffstats
path: root/binding/radio-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/radio-binding.c')
-rw-r--r--binding/radio-binding.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/radio-binding.c b/binding/radio-binding.c
index 02135fc..19cea20 100644
--- a/binding/radio-binding.c
+++ b/binding/radio-binding.c
@@ -57,6 +57,7 @@ static void scan_callback(uint32_t frequency, void *data)
static int set_role_state(bool state, char **output)
{
+#ifdef HAVE_4A_FRAMEWORK
int rc;
json_object *response = NULL;
json_object *jsonData = json_object_new_object();
@@ -114,6 +115,9 @@ failed_malformed:
failed:
return rc;
+#else
+ return 0;
+#endif
}
/*