diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-31 15:46:10 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-31 15:46:10 -0700 |
commit | a96b03e9c1238fe37772e01e69c2e4f56ea36880 (patch) | |
tree | cc20fedfa8eec76b859e46a6fe11993ceca401b9 /system | |
parent | 52dae3e9b26dd8b4c6ce7989505c41532c090051 (diff) |
remove temporary enet fix, and define gethostbyname_r in a header, so that we can be sure at compilation time that it is used in the way it is expected to be (that function has more than one possible signature in various unixes)
Diffstat (limited to 'system')
-rw-r--r-- | system/include/netdb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system/include/netdb.h b/system/include/netdb.h index df74a117..fa71f58f 100644 --- a/system/include/netdb.h +++ b/system/include/netdb.h @@ -101,6 +101,7 @@ struct hostent struct hostent* gethostbyaddr(const void* addr, socklen_t len, int type); struct hostent* gethostbyname(const char* name); +struct hostent* gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, int *err); // XXX not quite standard, see http://linux.die.net/man/3/gethostbyname_r void sethostent(int stayopen); void endhostent(void); void herror(const char* s); |