diff -Naur ../pwlib/include/ptlib/unix/ptlib/pmachdep.h ./include/ptlib/unix/ptlib/pmachdep.h
--- ../pwlib/include/ptlib/unix/ptlib/pmachdep.h 2003-05-06 08:59:12.000000000 +0200
+++ ./include/ptlib/unix/ptlib/pmachdep.h 2008-02-27 16:27:25.000000000 +0100
+//typedef int socklen_t;
diff -Naur ../pwlib/make/unix.mak ./make/unix.mak
--- ../pwlib/make/unix.mak 2003-07-25 00:01:42.000000000 +0200
+++ ./make/unix.mak 2008-02-27 16:53:37.000000000 +0100
CFLAGS += -fno-common -dynamic
LDFLAGS += -multiply_defined suppress
-ENDLDLIBS += -framework AudioToolbox -framework CoreAudio
+ENDLDLIBS += -framework AudioToolbox -framework CoreAudio -lresolv
#STDCCFLAGS += -DHAS_QUICKTIMEX
# stupid Projct Builder compiler
STDCCFLAGS += -DNO_LONG_DOUBLE
-LDLIBS += -prebind -framework CoreServices -framework QuickTime -framework Carbon
+LDLIBS += -prebind -framework CoreServices -framework QuickTime -framework Carbon -lresolv
#STDCCFLAGS += -fno-implement-inlines
# add OS directory to include path
-STDCCFLAGS += -I$(UNIX_INC_DIR) -I/usr/include/pwlib
+STDCCFLAGS += -I$(UNIX_INC_DIR) -I/usr/include/pwlib -I@@PREFIX@@/include
# add library directory to library path and include the library
diff -Naur ../pwlib/src/ptclib/pdns.cxx ./src/ptclib/pdns.cxx
--- ../pwlib/src/ptclib/pdns.cxx 2003-04-29 01:57:40.000000000 +0200
+++ ./src/ptclib/pdns.cxx 2008-02-27 16:37:47.000000000 +0100
#include <arpa/nameser.h>
+#include <nameser8_compat.h>
diff -Naur ../pwlib/src/ptclib/pssl.cxx ./src/ptclib/pssl.cxx
--- ../pwlib/src/ptclib/pssl.cxx 2003-04-16 10:00:19.000000000 +0200
+++ ./src/ptclib/pssl.cxx 2008-02-27 16:40:44.000000000 +0100
PSSLPrivateKey::PSSLPrivateKey(const BYTE * keyData, PINDEX keySize)
- key = d2i_AutoPrivateKey(NULL, (BYTE **)&keyData, keySize);
+ key = d2i_AutoPrivateKey(NULL, (const unsigned char** )&keyData, keySize);