Skip to content

Commit

Permalink
libc/int/userns: add build tag to C file
Browse files Browse the repository at this point in the history
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 <brad.davidson@rancher.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit ccb589b)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
brandond authored and kolyshkin committed Feb 7, 2025
1 parent de92f4b commit 04468c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build linux

#define _GNU_SOURCE
#include <fcntl.h>
#include <sched.h>
Expand Down

0 comments on commit 04468c0

Please # to comment.