[Git][NTPsec/ntpsec][master] seccomp: Make the #ifdef match the macro.
Gary E. Miller
gitlab at mg.gitlab.com
Tue Jun 13 20:11:30 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
31b148e3 by Gary E. Miller at 2017-06-13T13:10:20-07:00
seccomp: Make the #ifdef match the macro.
SCMP_SYS(x) uses __NR_x, so we should use #ifdef __NR_x to qualify
it.
- - - - -
1 changed file:
- ntpd/ntp_sandbox.c
Changes:
=====================================
ntpd/ntp_sandbox.c
=====================================
--- a/ntpd/ntp_sandbox.c
+++ b/ntpd/ntp_sandbox.c
@@ -391,7 +391,7 @@ int scmp_sc[] = {
SCMP_SYS(ppoll),
SCMP_SYS(sendmsg),
-#ifdef SYS_mmap
+#ifdef __NR_mmap
/* gentoo 64-bit and 32-bit, Intel and Arm use mmap */
SCMP_SYS(mmap),
#endif
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/31b148e3a9ccc016b47408f918a9cab55141b06e
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/31b148e3a9ccc016b47408f918a9cab55141b06e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170613/abd07085/attachment.html>
More information about the vc
mailing list