Correctly include netinet/in.h (#2315)

Motivation:

IPV6_RECVPKTINFO and IPV6_PKTINFO are not currently directly included.
On Apple platforms, these are found by including netinet/in.h, so we
should include that header directly.

Modifications:

- Add the correct include to shims.c

Result:

Better macOS builds
This commit is contained in:
Cory Benfield 2022-11-15 09:58:25 +00:00 committed by GitHub
parent edced031e7
commit 72b8e3f52c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
#include <errno.h>
#include <assert.h>
#include <netinet/ip.h>
#include <netinet/in.h>
int CNIODarwin_sendmmsg(int sockfd, CNIODarwin_mmsghdr *msgvec, unsigned int vlen, int flags) {
// Some quick error checking. If vlen can't fit into int, we bail.