diff mbox series

[pseudo] ports/linux: Add missing header

Message ID 20261020150533.1838141-1-richard.purdie@linuxfoundation.org
State New
Headers show
Series [pseudo] ports/linux: Add missing header | expand

Commit Message

Richard Purdie Oct. 20, 2026, 3:05 p.m. UTC
The opentree* calls that were recently added need linux/mount.h on older verisons
of Linux, e.g. on Ubuntu 22.04.

Add the missing header.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 ports/linux/portdefs.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/ports/linux/portdefs.h b/ports/linux/portdefs.h
index 6cece4e..ca96d06 100644
--- a/ports/linux/portdefs.h
+++ b/ports/linux/portdefs.h
@@ -34,6 +34,7 @@  GLIBC_COMPAT_SYMBOL(memcpy,2.0);
 #include <sys/syscall.h>
 #include <sys/prctl.h>
 #include <linux/seccomp.h>
+#include <linux/mount.h>
 
 /* close_range()'s flags, and unshare(), are only declared by glibc under
  * _GNU_SOURCE, which pseudo does not build with. <linux/close_range.h> is