Remove disabling of the reentrant macros

This commit is contained in:
2017-06-18 20:11:22 +00:00
parent aa2076a2eb
commit 6a278b1af0
2 changed files with 0 additions and 24 deletions

View File

@@ -84,15 +84,6 @@
*
*/
#if !defined(__minix) || !defined(_LIBC_REENTRANT_H)
#ifdef __minix
/*
* If _REENTRANT is not defined, the header may not be included more than once.
* This is probably a NetBSD libc bug, but for now we solve it for MINIX3 only.
*/
#define _LIBC_REENTRANT_H
#endif /* __minix */
/*
* Abstract thread interface for thread-safe libraries. These routines
* will use stubs in libc if the application is not linked against the
@@ -100,8 +91,6 @@
* is.
*/
#ifndef __minix
#include <pthread.h>
#include <signal.h>
@@ -133,15 +122,6 @@
#define once_t pthread_once_t
#define ONCE_INITIALIZER PTHREAD_ONCE_INIT
#else /* __minix */
typedef struct {
int pto_done;
} once_t;
#define ONCE_INITIALIZER { .pto_done = 0 }
#endif /* __minix */
#ifdef _REENTRANT
#ifndef __LIBC_THREAD_STUBS
@@ -349,5 +329,3 @@ thr_once(once_t *once_control, void (*routine)(void))
#define FUNLOCKFILE(fp) __empty
#endif /* _REENTRANT */
#endif /* !defined(__minix) || !defined(_LIBC_REENTRANT_H) */

View File

@@ -77,9 +77,7 @@
#endif /* defined(__minix) */
/* Never define _REENTRANT on Minix */
#if !defined(__minix)
#if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \
!defined(_REENTRANT)
#define _REENTRANT
#endif /* !defined(__minix) */
#endif