mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
56bf85096c
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
21 lines
628 B
C
21 lines
628 B
C
--- src/sock.c.orig 2016-05-20 11:41:06 UTC
|
|
+++ src/sock.c
|
|
@@ -149,7 +149,7 @@ new_socket(CONN *C, const char *hostpara
|
|
hp = NULL;
|
|
}
|
|
}
|
|
-#elif defined(sun)
|
|
+#elif defined(sun) || defined(__FreeBSD__)
|
|
# ifdef HAVE_GETIPNODEBYNAME
|
|
hp = getipnodebyname(hn, AF_INET, 0, &herrno);
|
|
# else /* default use gethostbyname_r*/
|
|
@@ -191,7 +191,7 @@ new_socket(CONN *C, const char *hostpara
|
|
|
|
memset((void*) &cli, 0, sizeof(cli));
|
|
memcpy(&cli.sin_addr, hp->h_addr, hp->h_length);
|
|
-#if defined(sun)
|
|
+#if defined(sun) || defined(__FreeBSD__)
|
|
# ifdef HAVE_FREEHOSTENT
|
|
freehostent(hp);
|
|
# endif/*HAVE_FREEHOSTENT*/
|