Andrei G has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/43577?usp=email )


Change subject: mgcp_client: include errno.h, not asm-generic
......................................................................

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 <[email protected]>
---
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 https://gerrit.osmocom.org/c/osmo-mgw/+/43577?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

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 <[email protected]>

Reply via email to