Skip to content

Commit fa775c8

Browse files
committed
implement gethostbyname
1 parent 2baae75 commit fa775c8

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

libogc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ add_library(ogc STATIC
2222
ogc_sockets/soc_fcntl.c
2323
ogc_sockets/soc_getsockopt.c
2424
ogc_sockets/soc_setsockopt.c
25+
ogc_sockets/soc_gethostbyname.c
2526

2627
console.c
2728
lwp_queue.c
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "soc_common.h"
2+
#include <netdb.h>
3+
4+
struct hostent* gethostbyname(const char *name)
5+
{
6+
7+
return net_gethostbyname(name);
8+
9+
}

0 commit comments

Comments
 (0)