1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/benchmarks/siege/files/patch-src_sock.c
Mathieu Arnold 56bf85096c Cleanup patches, category benchmarks
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-27 15:09:11 +00:00

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*/