From 3e9e4a8f355ae987b693c29e6441b7e5ad880ec1 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sun, 13 Aug 2006 18:58:54 +0000 Subject: [PATCH] Compile on freebsd --- dns.c | 4 ++++ iodine.c | 1 + iodined.c | 1 + 3 files changed, 6 insertions(+) diff --git a/dns.c b/dns.c index 2d7f764..051412a 100644 --- a/dns.c +++ b/dns.c @@ -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); diff --git a/iodine.c b/iodine.c index f5752a0..e815cee 100644 --- a/iodine.c +++ b/iodine.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/iodined.c b/iodined.c index 74ecee8..e3bc1ee 100644 --- a/iodined.c +++ b/iodined.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include