mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
![Jed Davis](/assets/img/avatar_default.png)
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