On Mon, Mar 07, 2005 at 07:11:15PM -0800, Ron Chen wrote: > I just got access to a FreeBSD 5.3 box, and I find > that Gridengine (SGE) fails to compile. (SGE 5.3p6 was > OK on FreeBSD 4.x/5.x) > > I find that it is caused by pthread_t is undefined. > For Linux, "sys/types.h" includes > "bits/pthreadtypes.h", and thus it's OK - and other > OSes are similar too. > > So I am wondering if it is a bug in FreeBSD, or if > Gridengine really needs to include pthread.h to get > pthread_t.
According to The Open Group Base Specifications Issue 6, this is indeed a bug. There should be no harm in also including pthread.h since that is also required to define pthread_t identicaly to sys/types.h. freebsd-threads is the appropriate place to raise this issue. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
pgp1cOCE8dNQb.pgp
Description: PGP signature