kro/zeromq-scala-binding — Issue #8: EAGAIN and EINVAL broken on BSD
Author: jvirtanen
Created: 2012-02-22 12:08:02+00:00
State: open

Object `ZeroMQ` defines constaints `EAGAIN` and `EINVAL` with values 11 and 22, respectively. These values seem to match those defined in `errno.h` on GNU/Linux but on BSD `EAGAIN` has the value 35. This breaks this library at least on Darwin, FreeBSD and OpenBSD.

POSIX only requires that specific symbolic constants, including `EAGAIN` and `EINVAL`, are defined in `errno.h` with unique positive integer values. It does not specify what those values must be. (See [the reference][errno].)

[errno]: http://pubs.opengroup.org/onlinepubs/009604599/basedefs/errno.h.html