build: use WITH_QRTR exclusively to check for QRTR support

The user may request to disable QRTR support using `--without-qrtr`
even if libqmi has QRTR support.
This commit is contained in:
Aleksander Morgado
2021-08-31 15:30:59 +02:00
parent d6dafe5cb4
commit 7177eeea99
2 changed files with 4 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
#include "mm-context.h" #include "mm-context.h"
#include "mm-base-modem.h" #include "mm-base-modem.h"
#if defined WITH_QMI && QMI_QRTR_SUPPORTED #if defined WITH_QRTR
#include "mm-kernel-device-qrtr.h" #include "mm-kernel-device-qrtr.h"
#endif #endif

View File

@@ -16,6 +16,8 @@
#ifndef MM_PORT_QMI_H #ifndef MM_PORT_QMI_H
#define MM_PORT_QMI_H #define MM_PORT_QMI_H
#include <config.h>
#include <glib.h> #include <glib.h>
#include <glib-object.h> #include <glib-object.h>
#include <gio/gio.h> #include <gio/gio.h>
@@ -66,7 +68,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (MMPortQmi, g_object_unref)
MMPortQmi *mm_port_qmi_new (const gchar *name, MMPortQmi *mm_port_qmi_new (const gchar *name,
MMPortSubsys subsys); MMPortSubsys subsys);
#if QMI_QRTR_SUPPORTED #if defined WITH_QRTR
MMPortQmi *mm_port_qmi_new_from_node (const gchar *name, MMPortQmi *mm_port_qmi_new_from_node (const gchar *name,
QrtrNode *node); QrtrNode *node);
#endif #endif