From 5c9d44154730c1e2d8b32339f4430e9a616eb298 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 12 Jul 2007 15:09:59 +0000 Subject: [PATCH] 2007-04-16 Ulrich Drepper [BZ #4364] * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3. --- ChangeLog | 5 +++++ posix/unistd.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 998be3adfa..f9157dcf34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-16 Ulrich Drepper + + [BZ #4364] + * posix/unistd.h (_XOPEN_VERSION): Define appropriately for SUSv3. + 2007-04-13 Jakub Jelinek [BZ #4344] diff --git a/posix/unistd.h b/posix/unistd.h index b751928b1e..5a88de269c 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -56,7 +56,9 @@ __BEGIN_DECLS #define _POSIX2_LOCALEDEF 200112L /* X/Open version number to which the library conforms. It is selectable. */ -#ifdef __USE_UNIX98 +#ifdef __USE_XOPEN2K +# define _XOPEN_VERSION 600 +#elif defined __USE_UNIX98 # define _XOPEN_VERSION 500 #else # define _XOPEN_VERSION 4