Skip to content

Commit 1bcf3f6

Browse files
committed
fixed compilation of syscall_memfd_secret for SLES
1 parent 89b660c commit 1bcf3f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/provider/provider_os_memory_linux.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ static int syscall_memfd_secret(void) {
8080
int fd = -1;
8181
#ifdef __NR_memfd_secret
8282
// SYS_memfd_secret is supported since Linux 5.14
83-
fd = syscall(SYS_memfd_secret, 0);
83+
// not using SYS_memfd_secret as SLES does not define it
84+
fd = syscall(__NR_memfd_secret, 0);
8485
if (fd == -1) {
8586
LOG_PERR("memfd_secret() failed");
8687
}

0 commit comments

Comments
 (0)