12 lines
465 B
Text
12 lines
465 B
Text
Index: libs/std/socket.c
|
|
--- libs/std/socket.c.orig
|
|
+++ libs/std/socket.c
|
|
@@ -371,7 +371,7 @@ static value host_resolve( value host ) {
|
|
ip = inet_addr(val_string(host));
|
|
if( ip == INADDR_NONE ) {
|
|
struct hostent *h;
|
|
-# if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(NEKO_CYGWIN)
|
|
+# if defined(NEKO_WINDOWS) || defined(NEKO_MAC) || defined(NEKO_CYGWIN) || defined(__OpenBSD__)
|
|
h = gethostbyname(val_string(host));
|
|
# else
|
|
struct hostent hbase;
|