Motivation:
Fix compilation error because of a type mismatch between st_mode and mode_t on
32-bit Android.
Modifications:
- Zero-extend mode_t constants on Android armv7 to match the types.
- Scope an earlier modification in this vein to armv7 only.
Result:
The code builds on Android armv7 again.