This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16755] New: _POSIX_C_SOURCE should define __USE_UNIX98


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]