Skip to contentSkip to conversation

ports/linux: Add missing header

PATCH New Richard Purdie 1 participant 1 message Oct 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ports/linux: Add missing header

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.

---
 ports/linux/portdefs.h | 1 +
 1 file changed, 1 insertion(+)
ports/linux/portdefs.h +1 -0
index 6cece4e..ca96d06 100644
@@ -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