[Slirp] [Git][slirp/libslirp][master] 2 commits: Include <sys/socket.h> and <arpa/inet.h> for AF_INET6 and inet_pton

Samuel Thibault (@sthibaul) gitlab at gitlab.freedesktop.org
Mon May 2 06:41:20 UTC 2022



Samuel Thibault pushed to branch master at slirp / libslirp


Commits:
84232aeb by Samuel Thibault at 2022-05-01T20:37:02+02:00
Include <sys/socket.h> and <arpa/inet.h> for AF_INET6 and inet_pton

Fixes #58

- - - - -
a7387792 by Samuel Thibault at 2022-05-02T06:41:17+00:00
Merge branch 'inet6_bsd' into 'master'

Include <sys/socket.h> and <arpa/inet.h> for AF_INET6 and inet_pton

Closes #58

See merge request slirp/libslirp!120
- - - - -


1 changed file:

- test/pingtest.c


Changes:

=====================================
test/pingtest.c
=====================================
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause */
 /*
- * Copyright (c) 2021 Samuel Thibault
+ * Copyright (c) 2021-2022 Samuel Thibault
  */
 
 /*
@@ -35,6 +35,8 @@ int slirp_inet_aton(const char *cp, struct in_addr *ia)
 }
 #define inet_aton slirp_inet_aton
 #else
+#include <sys/socket.h>
+#include <arpa/inet.h>
 #include <poll.h>
 #endif
 



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/c9dbaae6faca2d0348434996a274acf436ead3a6...a7387792f2eb573f22e195373278277f8aaf80e6

-- 
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/c9dbaae6faca2d0348434996a274acf436ead3a6...a7387792f2eb573f22e195373278277f8aaf80e6
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20220502/22203ee6/attachment.htm>


More information about the Slirp mailing list