]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
Fix build on ia64
authorMathias Gibbens <gibmat@debian.org>
Thu, 17 Nov 2022 21:57:58 +0000 (21:57 +0000)
committerMathias Gibbens <gibmat@debian.org>
Thu, 17 Nov 2022 21:57:58 +0000 (21:57 +0000)
The relevant code was added in commit 35acc24, but the function/macro
prctl_arg() didn't seem to be defined anywhere in the repo. lxc
currently has a corresponding macro defined in src/lxc/macro.h that
casts the value to an unsigned long. But 0 doesn't require any special
handling, so remove the call to prctl_arg().

Verified that the code compiles properly on Debian's ia64 porterbox
(yttrium).

Signed-off-by: Mathias Gibbens <gibmat@debian.org>
src/bindings.c

index fee7ede0dab672cf2a844fe3f0ccf3974f2f4b26..fe106a65c34ceb28e8a077525a661d0ffc6b1e3b 100644 (file)
@@ -424,7 +424,7 @@ __returns_twice pid_t lxcfs_raw_clone(unsigned long flags, int *pidfd)
        }
 #elif defined(__ia64__)
        /* On ia64 the stack and stack size are passed as separate arguments. */
-       return syscall(__NR_clone, flags | SIGCHLD, NULL, prctl_arg(0), pidfd);
+       return syscall(__NR_clone, flags | SIGCHLD, NULL, 0, pidfd);
 #else
        return syscall(__NR_clone, flags | SIGCHLD, NULL, pidfd);
 #endif