Browse Source

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@
OPENBSD_4_4
millert 16 years ago
parent
commit
613e4bcb94
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/include/unistd.h

+ 6
- 1
src/include/unistd.h View File

@ -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 $ */ /* $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 */ #define F_TEST 3 /* test a section for locks by other procs */
#endif #endif
#if __POSIX_VISIBLE
#define _POSIX_REENTRANT_FUNCTIONS 1
#define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
#endif
#ifndef NULL #ifndef NULL
#ifdef __GNUG__ #ifdef __GNUG__
#define NULL __null #define NULL __null


Loading…
Cancel
Save