iface-modem: actually respect build options

iface-modem does not include config.h so it doesnt actually have the meson
generated build defines to check against.

I found this while trying to use AT commands over D-Bus by enabling
at_command_via_dbus, confirming that Meson sees it, defines it in config.h
but then I still got the:
"Cannot send AT command to modem: operation only allowed in debug mode".

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
This commit is contained in:
Robert Marko
2023-09-25 22:41:13 +02:00
committed by Aleksander Morgado
parent aa7ab917f7
commit 39eb3749be

View File

@@ -14,6 +14,8 @@
* Copyright (c) 2022 Qualcomm Innovation Center, Inc.
*/
#include <config.h>
#include <ModemManager.h>
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>