mirror of https://github.com/diegocr/libnix.git
19 lines
295 B
C
19 lines
295 B
C
#include <proto/socket.h>
|
|
#include <netdb.h>
|
|
|
|
#ifndef gethostbyname
|
|
# error what !?
|
|
#endif
|
|
|
|
static __inline struct hostent *GetHostByName(const char *name)
|
|
{
|
|
return gethostbyname(name);
|
|
}
|
|
|
|
#undef gethostbyname
|
|
struct hostent *gethostbyname(const char *name)
|
|
{
|
|
return GetHostByName(name);
|
|
}
|
|
|