Skip to content

Commit 04468c0

Browse files
brandondkolyshkin
authored andcommitted
libc/int/userns: add build tag to C file
This fixes k3s cross-compilation on Windows, broken by commit 1912d59 ("*: actually support joining a userns with a new container"). [@kolyshkin: commit message] Fixes: 1912d59 Signed-off-by: Brad Davidson <[email protected]> Signed-off-by: Kir Kolyshkin <[email protected]> (cherry picked from commit ccb589b) Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent de92f4b commit 04468c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcontainer/internal/userns/userns_maps.c renamed to libcontainer/internal/userns/userns_maps_linux.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build linux
2+
13
#define _GNU_SOURCE
24
#include <fcntl.h>
35
#include <sched.h>

0 commit comments

Comments
 (0)