Add extern C clauses to header files so that c++ builds do not break.
Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
#include <compat/posix/arpa/inet.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
int inet_pton(int af, const char *src, void *dst);
+#ifdef __cplusplus
+}
+#endif
#define _LWIP_GLUE_NETDB_H_
#include <compat/posix/netdb.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if LWIP_DNS && LWIP_SOCKET
#if !(LWIP_COMPAT_SOCKETS)
struct servent *getservbyport(int port, const char *proto);
int getservbyport_r(int port, const char *prots, struct servent *se,
char *buf, size_t buflen, struct servent **res);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef _UK_LWIP_SOCKET_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <uk/config.h>
#if CONFIG_HAVE_LIBC
#include <fcntl.h>
const struct sockaddr *to, socklen_t tolen);
int socketpair(int domain, int type, int protocol, int sv[2]);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _UK_LWIP_SOCKET_H_ */