zeromq/zeromq2-1 — pull request #43 by jlopex (2012-03-20 02:18:24+00:00)
Title: Fixes issue LIBZMQ-332

Current libzmq doesn't compile on Android NDK.

According to the libc documentation S_IWRITE is only for BSD
compatibility:

http://www.gnu.org/s/hello/manual/libc/Permission-Bits.html

This patch adds a check to determine the target platform and
use correct file access definition in each case:

- For Linux and Android S_IWUSR is used.
- For other platforms S_IWRITE is used.

Signed-off-by: Javier Lopez