From 9e7b2efd15339d7b3564f7e08a660b2dc4945d26 Mon Sep 17 00:00:00 2001 From: Thomas Ries Date: Sat, 20 May 2006 11:24:58 +0000 Subject: [PATCH] - Fixed compiling issue when building on MacOS (Georg Schwarz) --- src/resolve.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/resolve.c b/src/resolve.c index 1f9a6dd..3bb115c 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -20,7 +20,12 @@ #include #include + #include +#ifdef __APPLE__ +#include +#endif + #include #include @@ -62,7 +67,7 @@ static int _resolve(char *name, int proto, int type, int class=C_ANY; // message buffer - char msg[PACKETSZ]; + unsigned char msg[PACKETSZ]; int msglen=PACKETSZ; // response header @@ -73,7 +78,7 @@ static int _resolve(char *name, int proto, int type, int exp_dnlen=MAXDNAME; int i, j, co; - char *mptr, *xptr; + unsigned char *mptr, *xptr; unsigned short *usp,ty; unsigned int *uip;