[glib: 1/5] gunixmounts: Add stubs for QNX
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/5] gunixmounts: Add stubs for QNX
- Date: Wed, 20 Jan 2021 12:28:55 +0000 (UTC)
commit 4e3b646b4fe2f2279ba5eea8d0cf182f511dcc8a
Author: s1341 <github shmarya net>
Date: Wed Mar 25 17:54:03 2015 +0200
gunixmounts: Add stubs for QNX
gio/gunixmounts.c | 25 +++++++++++++++++++++++++
meson.build | 4 ++++
2 files changed, 29 insertions(+)
---
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 2aac6419a..32b936259 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -956,6 +956,23 @@ _g_get_unix_mounts (void)
return return_list;
}
+/* QNX {{{2 */
+#elif defined (HAVE_QNX)
+
+static char *
+get_mtab_monitor_file (void)
+{
+ /* TODO: Not implemented */
+ return NULL;
+}
+
+static GList *
+_g_get_unix_mounts (void)
+{
+ /* TODO: Not implemented */
+ return NULL;
+}
+
/* Common code {{{2 */
#else
#error No _g_get_unix_mounts() implementation for system
@@ -1479,6 +1496,14 @@ _g_get_unix_mount_points (void)
return _g_get_unix_mounts ();
}
+/* QNX {{{2 */
+#elif defined (HAVE_QNX)
+static GList *
+_g_get_unix_mount_points (void)
+{
+ return _g_get_unix_mounts ();
+}
+
/* Common code {{{2 */
#else
#error No g_get_mount_table() implementation for system
diff --git a/meson.build b/meson.build
index 00c4789e9..5845d74d0 100644
--- a/meson.build
+++ b/meson.build
@@ -773,6 +773,10 @@ if host_system == 'darwin'
add_project_link_arguments(osx_ldflags, language : ['objc', 'c'])
endif
+if host_system == 'qnx'
+ glib_conf.set('HAVE_QNX', 1)
+endif
+
# Check for futex(2)
if cc.links('''#include <linux/futex.h>
#include <sys/syscall.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]