mirror of
https://github.com/diegocr/libnix.git
synced 2026-09-12 11:40:30 +00:00
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);
|
|
}
|
|
|