*** ./Makefile.ORIG Thu May 5 12:38:36 2011 --- ./Makefile Thu May 5 12:47:56 2011 *************** *** 14,28 **** # if you chnage this version, change in stun.h too VERSION=0.96 ! #CXXFLAGS+=-O2 ! #LDFLAGS+=-O2 -lssl STUNLIB=libstun.a # # Alternatively, for debugging. # ! CXXFLAGS+=-g -O -Wall ! LDFLAGS+=-g -O -Wall # for solaris #LDFLAGS+= -lnsl -lsocket --- 14,28 ---- # if you chnage this version, change in stun.h too VERSION=0.96 ! CXXFLAGS+=-I/opt/freeware/include ! LDFLAGS+=-L/opt/freeware/lib -lssl -lcrypto STUNLIB=libstun.a # # Alternatively, for debugging. # ! #CXXFLAGS+=-g -O -Wall ! #LDFLAGS+=-g -O -Wall # for solaris #LDFLAGS+= -lnsl -lsocket *** ./stun.cxx.ORIG Thu May 5 12:39:25 2011 --- ./stun.cxx Thu May 5 12:45:53 2011 *************** *** 32,38 **** --- 32,40 ---- #if defined(__sparc__) || defined(WIN32) #define NOSSL #endif + #ifndef _AIX #define NOSSL + #endif #include "udp.h" #include "stun.h" *************** *** 677,682 **** --- 679,692 ---- int fd=open("/dev/random",O_RDONLY); read(fd,&tick,sizeof(tick)); closesocket(fd); + #elif defined(_AIX) + #ifdef _AIX52 + int fd=open("/dev/random",O_RDONLY); + #else + int fd=open("/dev/egd-pool",O_RDONLY); + #endif + read(fd,&tick,sizeof(tick)); + closesocket(fd); #else # error Need some way to seed the random number generator #endif