Skip to content

Changes

Started by upstream project gerrit-libosmocore #2287
Started 1 day 2 hr ago
Queued 14 min
Took 2 min 36 sec on build4-deb12build-ansible

Summary

  1. socket.h: Include netinet/in.h instead of arpa/inet.h (details)
Commit 3cdd76df7da22bf32d0787657ac0cbe99e48f6df by Pau Espin Pedrol
socket.h: Include netinet/in.h instead of arpa/inet.h

In socket.h we are mainly interested in netinet/int.h, since that's the
one defining INET_ADDRSTRLEN, struct sockaddr_in, struct in_addr, ec.

Header arpa/inet.h usually defines several functions which use those,
like htonl(), inet_ntop(), etc.

See POSIX:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html#tag_13_03
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/netinet_in.h.html

Change-Id: I03919c4adc962bbcfabc9030c6f12c0e10ff060c
The file was modifiedinclude/osmocom/core/socket.h