Subject: pkg/17975: kdelibs3 won't compile with _XOPEN_SOURCE defined
To: None <gnats-bugs@gnats.netbsd.org>
From: None <htodd@twofifty.com>
List: netbsd-bugs
Date: 08/17/2002 16:25:24
>Number:         17975
>Category:       pkg
>Synopsis:       kdelibs3 won't compile with _XOPEN_SOURCE defined
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 17 16:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6F
>Organization:
	
>Environment:
	
	
System: NetBSD allison 1.6F NetBSD 1.6F (ALLISON) #61: Sat Aug 17 09:41:51 PDT 2002 htodd@allison:/usr/src/sys/arch/i386/compile/ALLISON i386
Architecture: i386
Machine: i386
>Description:
	
	kdelibs3 won't compile on a system with _XOPEN_SOURCE defined
>How-To-Repeat:
	
	cd /usr/pkgsrc/x11/kdelibs3; make
>Fix:
	
*** kdesu_pty.cpp       Sat Aug 17 16:24:31 2002
--- kdesu_pty.cpp.orig  Sat Aug 17 16:24:10 2002
***************
*** 20,26 ****
  #define _GNU_SOURCE   /* Needed for getpt, ptsname in glibc 2.1.x systems */
	#endif
	  
	  ! #if !defined(_XOPEN_SOURCE) && !defined(__osf__) && !defined(__NetBSD__)
		#define _XOPEN_SOURCE /* Needed for grantpt, unlockpt in glibc 2.1.x      */
		  #endif
			
			--- 20,26 ----
			  #define _GNU_SOURCE   /* Needed for getpt, ptsname in glibc 2.1.x systems */
				#endif
				  
				  ! #if !defined(_XOPEN_SOURCE) && !defined(__osf__)
					#define _XOPEN_SOURCE /* Needed for grantpt, unlockpt in glibc 2.1.x      */
					  #endif

>Release-Note:
>Audit-Trail:
>Unformatted: