Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/include/compat/netdb.h
6171 views
1
#ifndef _COMPAT_NETDB_H_
2
#define _COMPAT_NETDB_H_
3
4
#include_next <netdb.h>
5
6
#ifdef __cplusplus
7
extern "C" {
8
#endif
9
10
/* The musl includes only define these things for old sources or
11
when certain flags are activated. We want these available
12
all of the time for now. */
13
struct hostent *gethostbyname (const char *);
14
struct hostent *gethostbyaddr (const void *, socklen_t, int);
15
16
int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *);
17
18
#ifdef __cplusplus
19
}
20
#endif
21
22
#endif /* _COMPAT_NETDB_H_ */
23
24