--- libeio/etp.c 2015/09/21 08:01:00 1.10 +++ libeio/etp.c 2016/05/01 17:15:45 1.11 @@ -37,6 +37,15 @@ * either the BSD or the GPL. */ +#if HAVE_SYS_PRCTL_H +# include +#endif + +#ifdef EIO_STACKSIZE +# define X_STACKSIZE EIO_STACKSIZE +#endif +#include "xthread.h" + #ifndef ETP_API_DECL # define ETP_API_DECL static #endif @@ -311,7 +320,7 @@ { #if HAVE_PRCTL_SET_NAME /* provide a more sensible "thread name" */ - char name[16 + 1]; + char name[15 + 1]; const int namelen = sizeof (name) - 1; int len;