- Small changes to compile again under OpenBSD.
This commit is contained in:
parent
fe725146cb
commit
bdafa3cdbe
@ -1,5 +1,6 @@
|
|||||||
0.6.1
|
0.6.1
|
||||||
=====
|
=====
|
||||||
|
12-Nov-2007: - Small changes to compile again under OpenBSD.
|
||||||
|
|
||||||
0.6.0
|
0.6.0
|
||||||
=====
|
=====
|
||||||
|
|||||||
@ -20,17 +20,11 @@
|
|||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
//#include <stdio.h>
|
|
||||||
//#include <stdlib.h>
|
|
||||||
//#include <unistd.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
//#include <string.h>
|
|
||||||
//#include <sys/time.h>
|
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
//#include <signal.h>
|
|
||||||
|
|
||||||
|
|
||||||
#include <osipparser2/osip_parser.h>
|
#include <osipparser2/osip_parser.h>
|
||||||
#include "siproxd.h"
|
#include "siproxd.h"
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <values.h>
|
#include <limits.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -208,8 +208,8 @@ int get_ip_by_host(char *hostname, struct in_addr *addr) {
|
|||||||
*/
|
*/
|
||||||
j=0;
|
j=0;
|
||||||
k=0;
|
k=0;
|
||||||
t1=MAXINT;
|
t1=INT_MAX;
|
||||||
t2=MAXINT;
|
t2=INT_MAX;
|
||||||
for (i=0; i<DNS_CACHE_SIZE; i++) {
|
for (i=0; i<DNS_CACHE_SIZE; i++) {
|
||||||
if (dns_cache[i].hostname[0]=='\0') break;
|
if (dns_cache[i].hostname[0]=='\0') break;
|
||||||
if ((dns_cache[i].expires_timestamp < t1) &&
|
if ((dns_cache[i].expires_timestamp < t1) &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user