Max has uploaded this change for review. ( https://gerrit.osmocom.org/12823


Change subject: Add missing include
......................................................................

Add missing include

socket.h uses INET6_ADDRSTRLEN without including arpa/inet.h where it's
defined which might break eternal users of socket.h

Fix this by adding missing include. The error was introduced in
64b51eb68bd272b6b1f2cefa2b33e9dd74024d0c

Change-Id: I2883addcb81cec038577e401e356e8f07a947d4c
---
M include/osmocom/core/socket.h
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/23/12823/1

diff --git a/include/osmocom/core/socket.h b/include/osmocom/core/socket.h
index c183532..496a859 100644
--- a/include/osmocom/core/socket.h
+++ b/include/osmocom/core/socket.h
@@ -11,6 +11,8 @@
 #include <stdbool.h>
 #include <stddef.h>

+#include <arpa/inet.h>
+
 struct sockaddr_in;
 struct sockaddr;
 struct osmo_fd;

--
To view, visit https://gerrit.osmocom.org/12823
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2883addcb81cec038577e401e356e8f07a947d4c
Gerrit-Change-Number: 12823
Gerrit-PatchSet: 1
Gerrit-Owner: Max <[email protected]>

Reply via email to