This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16755] New: _POSIX_C_SOURCE should define __USE_UNIX98
- From: "jaak at ristioja dot ee" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 25 Mar 2014 16:03:10 +0000
- Subject: [Bug libc/16755] New: _POSIX_C_SOURCE should define __USE_UNIX98
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16755
Bug ID: 16755
Summary: _POSIX_C_SOURCE should define __USE_UNIX98
Product: glibc
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: jaak at ristioja dot ee
CC: drepper.fsp at gmail dot com
$ cat test.c
#define _POSIX_C_SOURCE 200112L
#include <features.h>
#ifndef __USE_UNIX98
#error __USE_UNIX98 not defined
#endif
int main() { return 0; }
$ cc test.c
test.c:4:2: error: #error __USE_UNIX98 not defined
This causes trouble for users <pthread.h> (and the like): e.g.
PTHREAD_MUTEX_RECURSIVE not being declared.
--
You are receiving this mail because:
You are on the CC list for the bug.