gunixmounts: Add stubs for QNX

This commit is contained in:
s1341 2015-03-25 17:54:03 +02:00 committed by Ole André Vadla Ravnås
parent 9d40b0ceb9
commit 4e3b646b4f
2 changed files with 29 additions and 0 deletions

View File

@ -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

View File

@ -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>