]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/nolibc: Remove LIBC_SYSCALLS guard in prctl.h
authorTiago Andre Goncalves Oliveira <t.g.oliveira@ua.pt>
Sat, 16 Sep 2023 17:18:33 +0000 (18:18 +0100)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
sys/prctl.h in nolibc is using UK_LIBC_SYSCALLS as guard.
This is not required, since the guard only makes sense outside nolibc.
Remove UK_LIBC_SYSCALLS guard.

Signed-off-by: Tiago Andre Goncalves Oliveira <t.g.oliveira@ua.pt>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1102

lib/nolibc/musl-imported/include/sys/prctl.h

index 9cd699c19cec05a8323d692e630b043d8f13517b..5ae4a6df88a98a03794e726f68904e4bf7aaca5a 100644 (file)
@@ -155,13 +155,11 @@ struct prctl_mm_map {
 #define PR_PAC_APDBKEY (1UL << 3)
 #define PR_PAC_APGAKEY (1UL << 4)
 
-#if UK_LIBC_SYSCALLS
 int prctl(int option,
          unsigned long arg2,
          unsigned long arg3,
          unsigned long arg4,
          unsigned long arg5);
-#endif /* UK_LIBC_SYSCALLS */
 
 #ifdef __cplusplus
 }