Subject: Native thread support
To: None <tech-x11@netbsd.org>
From: Nick Hudson <skrll@netbsd.org>
List: tech-x11
Date: 01/18/2003 15:43:45
--------------Boundary-00=_XC2X644XBH9LS80EPIUJ
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 8bit

I'm running X from a xsrc tree built with attached diff from mrg and 
everything seems OK.

Nick


--------------Boundary-00=_XC2X644XBH9LS80EPIUJ
Content-Type: text/x-diff;
  charset="us-ascii";
  name="xsrc.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="xsrc.diff"

Index: xfree/xc/config//cf/NetBSD.cf
===================================================================
RCS file: /cvsroot/xsrc/xfree/xc/config/cf/NetBSD.cf,v
retrieving revision 1.35
diff -c -r1.35 NetBSD.cf
*** xfree/xc/config//cf/NetBSD.cf	2002/12/14 17:07:15	1.35
--- xfree/xc/config//cf/NetBSD.cf	2003/01/18 15:41:19
***************
*** 95,110 ****
  
  #define InstallXloadSetGID	NO
  
! /* Defines for using the GNU pth thread library -- experimental */
! 
! #ifdef NetBSDPth
! #define PthreadHLocation	-I/usr/local/include /* where is pthread.h? */
! #define LibPthreadLocation	-L/usr/local/lib /* where is libpthread? */
! #define HasThreadSafeAPI	NO
! #define	HasPosixThreads		YES
! #define SystemMTDefines		-D_REENTRANT PthreadHLocation
! #define ThreadsLibraries	LibPthreadLocation -Wl,-rpath,/usr/local/lib -lpthread
! #define SharedX11Reqs		ThreadsLibraries
  #endif
  
  /*
--- 95,112 ----
  
  #define InstallXloadSetGID	NO
  
! /*
!  * Native NetBSD thread library appeared in 1.6M
!  */	
! #if (OSMajorVersion > 1 || \
!     (OSMajorVersion == 1 && OSMinorVersion > 6) || \
!     (OSMajorVersion == 1 && OSMinorVersion == 6 && OSTeenyVersion >= 13))
! # define HasPosixThreads	YES
! # define ThreadedX		YES
! # define SystemMTDefines	-D_REENTRANT
! # define ThreadsLibraries	-lpthread
! # define HasThreadSafeAPI	NO	/* getpwuid_r() and friends */
! # define SharedX11Reqs		ThreadsLibraries
  #endif
  
  /*

--------------Boundary-00=_XC2X644XBH9LS80EPIUJ--