#include "pthread_impl.h"

int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
{
	if (pshared > 1U) return EINVAL;
#ifdef __EMSCRIPTEN__
	if (pshared) return ENOTSUP;
#endif
	a->__attr &= ~128U;
	a->__attr |= pshared<<7;
	return 0;
}
