OpenLDAP fun places large arrays onto the stack hits red zone on DragonFly (aka stack too large) source tries to enlarge the thread stack with pthread_attr_setstack, after checking whether it is supported fails miserable, since the macro used is defined in the not-included unistd.h