From 613e4bcb94ffb6f5d5b831245dd0f039aa017381 Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 25 Jun 2008 14:58:54 +0000 Subject: [PATCH] Move _POSIX_THREAD_SAFE_FUNCTIONS into unistd.h and set it to 200112 now that we support all the _r functions required by POSIX 1003.1-2001. Also define _POSIX_REENTRANT_FUNCTIONS. OK kurt@ deraadt@ --- src/include/unistd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/include/unistd.h b/src/include/unistd.h index 6751bbb9..a28fb72d 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.61 2008/04/29 14:52:54 kurt Exp $ */ +/* $OpenBSD: unistd.h,v 1.62 2008/06/25 14:58:54 millert Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -50,6 +50,11 @@ #define F_TEST 3 /* test a section for locks by other procs */ #endif +#if __POSIX_VISIBLE +#define _POSIX_REENTRANT_FUNCTIONS 1 +#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L +#endif + #ifndef NULL #ifdef __GNUG__ #define NULL __null