ITS#9215 fix for glibc again

This commit is contained in:
Howard Chu 2020-04-28 16:33:41 +01:00
parent d38d48fc8f
commit fd23680a44

View File

@ -14,14 +14,16 @@
* <http://www.OpenLDAP.org/license.html>.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1 /* For pthread_setconcurrency() on glibc */
#endif
#include "portable.h"
#if defined( HAVE_PTHREADS )
#ifdef __GLIBC__
#undef _FEATURES_H
#define _XOPEN_SOURCE 500 /* For pthread_setconcurrency() on glibc */
#endif
#include <ac/errno.h>
#ifdef REPLACE_BROKEN_YIELD