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