diff --git a/headers/posix/netdb.h b/headers/posix/netdb.h index 32a6682127..26cb35e389 100644 --- a/headers/posix/netdb.h +++ b/headers/posix/netdb.h @@ -3,8 +3,14 @@ #ifndef NETDB_H #define NETDB_H +#include #include +#ifdef __cplusplus +extern "C" { +#endif + + #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 64 #endif @@ -174,4 +180,8 @@ void endservent (void); */ #define ERRSET_SUCCESS 0 +#ifdef __cplusplus +} +#endif + #endif /* NETDB_H */