From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26556 invoked by alias); 11 Aug 2004 13:39:12 -0000 Mailing-List: contact glibc-bugs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sources.redhat.com Received: (qmail 26539 invoked by uid 48); 11 Aug 2004 13:39:11 -0000 Date: Wed, 11 Aug 2004 13:39:00 -0000 From: "sebastien dot decugis at ext dot bull dot net" To: glibc-bugs@sources.redhat.com Message-ID: <20040811133910.320.sebastien.decugis@ext.bull.net> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug nptl/320] New: rwlock features should not be dependent on XSI extensions X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg00112.txt.bz2 List-Id: The following code won't compile: ------------------------------------------ #define _POSIX_C_SOURCE 200112L #include pthread_rwlock_t rw; int main(int argc, char * argv[]) { return pthread_rwlock_init(&rw, NULL); } ------------------------------------------- It compiles when I add: #define _XOPEN_SOURCE 600 But this feature is part of the IEEE Std 1003.1, 2004 Edition (and not marked with the XSI extension). I am unsure whether /include/features.h or /nptl/sysdeps/pthread/pthread.h should be changed. Thanks, Sebastien. -- Summary: rwlock features should not be dependent on XSI extensions Product: glibc Version: unspecified Status: NEW Severity: minor Priority: P3 Component: nptl AssignedTo: drepper at redhat dot com ReportedBy: sebastien dot decugis at ext dot bull dot net CC: glibc-bugs at sources dot redhat dot com http://sources.redhat.com/bugzilla/show_bug.cgi?id=320 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.