mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 04:41:54 +00:00
59b510b887
Linux syscall numbers vary by architecture, so hard-coding the ARM ones breaks non-ARM architectures. This patch ifdefs the hard-coding, and uses the system headers' values if/when it provides them (on Android/B2G the headers are often significantly older than the running kernel). Bonus fix: warning message typo, and don't assume NS_WARNING can't set errno.