Andrei G has uploaded this change for review.

View Change

mgcp_client: include errno.h, not asm-generic

src/libosmo-mgcp-client/mgcp_client_pool.c includes
<asm-generic/errno.h> for ECONNABORTED and EINVAL. That is a Linux
kernel UAPI header. It exists on Linux distributions and nowhere else,
so the build stops on Darwin:

mgcp_client_pool.c:21:10: fatal error: 'asm-generic/errno.h' file not
found

Both values come from <errno.h> on every platform, and on Linux glibc's
<errno.h> reaches the same UAPI definitions, so including the kernel
header directly was never needed there either.

No functional change on any platform.

Change-Id: Ie3fc368c04c29aea824002b3bf9839e410e7f045
Signed-off-by: Andrei Gosman <andrei.gosman@gmail.com>
---
M src/libosmo-mgcp-client/mgcp_client_pool.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/77/43577/1
diff --git a/src/libosmo-mgcp-client/mgcp_client_pool.c b/src/libosmo-mgcp-client/mgcp_client_pool.c
index 61fb134..42d775e 100644
--- a/src/libosmo-mgcp-client/mgcp_client_pool.c
+++ b/src/libosmo-mgcp-client/mgcp_client_pool.c
@@ -18,7 +18,7 @@
*
*/

-#include <asm-generic/errno.h>
+#include <errno.h>
#include <osmocom/mgcp_client/mgcp_client.h>
#include <osmocom/mgcp_client/mgcp_client_internal.h>
#include <osmocom/mgcp_client/mgcp_client_pool_internal.h>

To view, visit change 43577. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Ie3fc368c04c29aea824002b3bf9839e410e7f045
Gerrit-Change-Number: 43577
Gerrit-PatchSet: 1
Gerrit-Owner: Andrei G <andrei.gosman@gmail.com>