Compile on freebsd

This commit is contained in:
Erik Ekman 2006-08-13 18:58:54 +00:00
parent eac7d987cf
commit 3e9e4a8f35
3 changed files with 6 additions and 0 deletions

4
dns.c
View File

@ -37,6 +37,10 @@
#include "dns.h"
#include "encoding.h"
// For FreeBSD
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
static int host2dns(const char *, char *, int);
static int dns_write(int, int, char *, int, char);

View File

@ -20,6 +20,7 @@
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>

View File

@ -18,6 +18,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <netinet/in.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>