Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
# SPDX-License-Identifier: LGPL-2.1-or-later
hooks_unmount_namespace_sources = files('unmount-namespace.c')
+if srcconf.get('IS_BIONIC') == 1 or srcconf.get('HAVE_HASMNTOPT') == 0 or srcconf.get('HAVE_SETMNTENT') == 0 or srcconf.get('HAVE_ENDMNTENT') == 0
+ hooks_unmount_namespace_sources += files(
+ '../src/include/lxcmntent.c',
+ '../src/include/lxcmntent.h')
+endif
hook_programs += executable(
'unmount-namespace',