[AC_DEFINE([HAVE_TM_GMTOFF], [1], [Does struct tm have a field tm_gmtoff?])
])
-AC_CHECK_TYPES([struct mount_attr], [], [], [[#include <sys/mount.h>]])
+AC_CHECK_TYPES([struct mount_attr], [], [], [[#include <linux/mount.h>]])
AC_CHECK_MEMBERS([struct termios.c_line],,,
[[#include <termios.h>]])
#if defined(__linux__)
#include <sys/syscall.h>
+#include <linux/mount.h>
/*
* Scope all of this beneath mount_setattr(). If this syscall is available all
newlocale
mempcpy
mkostemp
+ move_mount
+ mount_setattr
nanosleep
ntp_gettime
+ open_tree
personality
pidfd_open
pidfd_send_signal
''')
conf.set('HAVE_TM_GMTOFF', have ? 1 : false)
+
+have = cc.sizeof('struct mount_attr', prefix : '#include <linux/mount.h>') > 0
+conf.set('HAVE_STRUCT_MOUNT_ATTR', have ? 1 : false)
+
have = cc.has_member('struct termios', 'c_line',
prefix : '#include <termios.h>')
conf.set('HAVE_STRUCT_TERMIOS_C_LINE', have ? 1 : false)