]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson: Add lxcmntent to unmount-namespace hook
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 7 Jun 2022 21:15:26 +0000 (17:15 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 7 Jun 2022 21:18:14 +0000 (17:18 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
hooks/meson.build

index d72e9b8ce164f1336cd4a260be3b83102e214e06..225dfcdc20bb38a361fe0ef526f2073b2afab1d8 100644 (file)
@@ -1,6 +1,11 @@
 # 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',