summaryrefslogtreecommitdiff
path: root/pkg/rootless/rootless_linux.go
diff options
context:
space:
mode:
authorCameron Nemo <cnemo@tutanota.com>2019-06-08 14:14:13 -0700
committerCameron Nemo <cnemo@tutanota.com>2019-06-08 14:15:03 -0700
commit8d2c7c269d7c6a5b5f8749a68e5101f2f94652f9 (patch)
treea8d8bb8e9976a1640d5ff71737e5c165719fa7dd /pkg/rootless/rootless_linux.go
parent39f5ea4c040d60f5f16b85ab144ddacf4cbba4c8 (diff)
downloadpodman-8d2c7c269d7c6a5b5f8749a68e5101f2f94652f9.tar.gz
podman-8d2c7c269d7c6a5b5f8749a68e5101f2f94652f9.tar.bz2
podman-8d2c7c269d7c6a5b5f8749a68e5101f2f94652f9.zip
Fix cgo includes for musl
closes #3284 Signed-off-by: Cameron Nemo <cnemo@tutanota.com>
Diffstat (limited to 'pkg/rootless/rootless_linux.go')
-rw-r--r--pkg/rootless/rootless_linux.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index 0cac50fc0..3f78ffc67 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -24,6 +24,7 @@ import (
/*
#cgo remoteclient CFLAGS: -DDISABLE_JOIN_SHORTCUT
#include <stdlib.h>
+#include <sys/types.h>
extern uid_t rootless_uid();
extern uid_t rootless_gid();
extern int reexec_in_user_namespace(int ready, char *pause_pid_file_path, char *file_to_read, int fd);