Subj : CVS commit src/sbbs3/main To : Frank Reid From : Digital Man Date : Sat Sep 17 2005 03:44 pm Re: CVS commit src/sbbs3/main By: Frank Reid to rswindell on Sat Sep 17 2005 04:54 am > Re: CVS commit src/sbbs3/main > By: rswindell to All on Fri Sep 16 2005 17:01:00 > > > src/sbbs3 main.cpp 1.399 1.400 > > Update of /cvsroot/sbbs/src/sbbs3 > > In directory cvs.synchro.net:/tmp/cvs-serv32512 > > > > Modified Files: > > main.cpp > > Log Message: > > Use the current thread ID as part of the random number seed. > > > > > gmake[1]: Leaving directory `/usr/local/sbbs/src/xpdev' > Compiling main.cpp > g++ -MMD -ggdb -D_DEBUG -DJAVASCRIPT -I../../include/mozilla/js > -I/usr/local/include -I../../include/mozilla/nspr -I../uifc -I../xpdev > -DLINK_LIST_THREADSAFE -I../smblib -I../conio -D_THREAD_SAFE -D_REENTRANT > -DUSE_XP_SEMAPHORES -DSBBS -DSBBS_EXPORTS -DSMB_EXPORTS -DMD5_EXPORTS > -DRINGBUF_SEM -o gcc.freebsd.obj.debug-mt/main.o -c main.cpp > main.cpp: In function `void sbbs_srand()': > main.cpp:268: error: invalid operands of types `time_t' and `pthread*' to > binary `operator^' > gmake: *** [gcc.freebsd.obj.debug-mt/main.o] Error 1 Weird. It works on Linux, where pthread_self returns a pthread_t and pthread_t is defined as an "unsigned long int" (in /usr/include/bits/pthreadtypes.h). Do you know what pthread_t is typed-to/defined-as on FreeBSD? digital man Snapple "Real Fact" #88: A ten gallon hat holds less then one gallon of liquid. .