mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00

The function to detect whether the kernel has separate syscalls for socket operations (rather than only `socketcall`) had a comment that it's called only once, which is no longer true. So, this seems like a good time to add a cache (but not on newer archs like `x86_64` where the answer is constant). This patch also removes the ifdefs on `__NR_socket`, because all archs have it now, and our local headers will define it even if the build host's headers don't. Differential Revision: https://phabricator.services.mozilla.com/D105853