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:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user