SF Tracker [ 1703533 ] Patch to make it compile under FreeBSD
Submitted By: Timothy Redaelli - drittz I made some patches to make it compile under FreeBSD using gethostbyaddr_r when supported. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@165 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
		| @@ -34,8 +34,11 @@ | ||||
| ************************************************************************/ | ||||
|  | ||||
| #ifdef __FreeBSD__ | ||||
| #include <osreldate.h> | ||||
| #if __FreeBSD_version < 601103 | ||||
| #include <lwres/netdb.h> | ||||
| #endif | ||||
| #endif | ||||
| #include "config.h" | ||||
| #include "uri.h" | ||||
|  | ||||
| @@ -620,7 +623,7 @@ parse_hostport( const char *in, | ||||
|                                    &h, | ||||
|                                    temp_hostbyname_buff, | ||||
|                                    BUFFER_SIZE, &errcode ); | ||||
| #elif defined(__FreeBSD__) | ||||
| #elif defined(__FreeBSD__) && __FreeBSD_version < 601103 | ||||
|         h = lwres_gethostbyname_r( temp_host_name, | ||||
|                                    &h_buf, | ||||
|                                    temp_hostbyname_buff, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marcelo Roberto Jimenez
					Marcelo Roberto Jimenez