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-base-modem.h"
#if defined WITH_QMI && QMI_QRTR_SUPPORTED
#if defined WITH_QRTR
#include "mm-kernel-device-qrtr.h"
#endif

View File

@@ -16,6 +16,8 @@
#ifndef MM_PORT_QMI_H
#define MM_PORT_QMI_H
#include <config.h>
#include <glib.h>
#include <glib-object.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,
MMPortSubsys subsys);
#if QMI_QRTR_SUPPORTED
#if defined WITH_QRTR
MMPortQmi *mm_port_qmi_new_from_node (const gchar *name,
QrtrNode *node);
#endif