Summary: | _XOPEN_VERSION and unistd.h | ||
---|---|---|---|
Product: | glibc | Reporter: | Pierre Habouzit <madcoder> |
Component: | libc | Assignee: | Ulrich Drepper <drepper.fsp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | glibc-bugs |
Priority: | P2 | Flags: | fweimer:
security-
|
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | XOPEN_VERSION will be 600 when __USE_XOPEN2K is defined. |
Description
Pierre Habouzit
2007-04-15 00:43:57 UTC
Created attachment 1688 [details]
XOPEN_VERSION will be 600
when __USE_XOPEN2K is defined.
XOPEN_VERSION will be 600 when __USE_XOPEN2K is defined.
I'd use #elif instead, other than that it looks ok to me. /* X/Open version number to which the library conforms. It is selectable. */ #ifdef __USE_XOPEN2K # define _XOPEN_VERSION 600 #elif defined __USE_UNIX98 # define _XOPEN_VERSION 500 #else # define _XOPEN_VERSION 4 #endif I checked in the patch. Subject: Bug 4364 CVSROOT: /cvs/glibc Module name: libc Branch: glibc-2_5-branch Changes by: jakub@sourceware.org 2007-07-12 15:09:59 Modified files: . : ChangeLog posix : unistd.h Log message: 2007-04-16 Ulrich Drepper <drepper@redhat.com> [BZ #4364] * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.10362.2.66&r2=1.10362.2.67 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/posix/unistd.h.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.147&r2=1.147.2.1 |