[MERGED] libosmo-netif[master]: ipa-stream-{client, server}: Add missing #include <sys/socket.h>

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Dec 1 15:21:31 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: ipa-stream-{client,server}: Add missing #include <sys/socket.h>
......................................................................


ipa-stream-{client,server}: Add missing #include <sys/socket.h>

This lead to compiler warnings on FreeBSD, as setsockopt() is undefined.

Change-Id: Ie0ee3e48adfd0cd252703ec020cef28cf76ca223
---
M examples/ipa-stream-client.c
M examples/ipa-stream-server.c
2 files changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/examples/ipa-stream-client.c b/examples/ipa-stream-client.c
index e139a00..05ad4f5 100644
--- a/examples/ipa-stream-client.c
+++ b/examples/ipa-stream-client.c
@@ -7,6 +7,7 @@
 #include <sys/time.h>
 #include <arpa/inet.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 
diff --git a/examples/ipa-stream-server.c b/examples/ipa-stream-server.c
index 4a7a0d2..b475552 100644
--- a/examples/ipa-stream-server.c
+++ b/examples/ipa-stream-server.c
@@ -5,6 +5,7 @@
 #include <unistd.h>
 #include <arpa/inet.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 

-- 
To view, visit https://gerrit.osmocom.org/1353
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie0ee3e48adfd0cd252703ec020cef28cf76ca223
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list