summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors1341 <github@shmarya.net>2015-03-25 17:54:03 +0200
committerOle André Vadla Ravnås <oleavr@gmail.com>2021-01-19 23:16:57 +0100
commit4e3b646b4fe2f2279ba5eea8d0cf182f511dcc8a (patch)
tree5494798c194e8f7f34f0ac1b8855d5d4392867dd
parent9d40b0ceb91069256ec4e231914d4e56abf95ea3 (diff)
downloadglib-4e3b646b4fe2f2279ba5eea8d0cf182f511dcc8a.tar.gz
gunixmounts: Add stubs for QNX
-rw-r--r--gio/gunixmounts.c25
-rw-r--r--meson.build4
2 files changed, 29 insertions, 0 deletions
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>