blob: 2282e630d8cd46f7f9bb484c19e30b3210808e37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- src/sock.c.ORIG Sun Aug 29 13:39:37 2004
+++ src/sock.c Sun Aug 29 13:38:01 2004
@@ -132,7 +132,7 @@
if((gethostbyname_r( hn, &hent, hbf, sizeof(hbf), &hp, &herrno ) < 0)){
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*/
|