--- IO-AIO/xthread.h 2007/07/08 09:09:34 1.2 +++ IO-AIO/xthread.h 2007/07/08 11:05:36 1.3 @@ -77,19 +77,6 @@ return !!*tid; } -int Perl_my_socketpair (int family, int type, int protocol, int fd[2]); - -static int -create_pipe (int fd[2]) -{ - int arg = 1; - Perl_my_socketpair (AF_UNIX, SOCK_STREAM, 0, fd); - ioctlsocket (fd [0], FIONBIO, &arg); - ioctlsocket (fd [1], FIONBIO, &arg); - - return 1; -} - #else ///////////////////////////////////////////////////////////////////////////// @@ -108,11 +95,6 @@ #include #include -#ifndef PTHREAD_STACK_MIN -/* care for broken platforms, e.g. windows */ -# define PTHREAD_STACK_MIN 16384 -#endif - typedef pthread_mutex_t mutex_t; #if __linux && defined (PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) # define X_MUTEX_INIT PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP @@ -154,25 +136,7 @@ return retval; } -static int -create_pipe (int fd[2]) -{ - if (pipe (fd) - || fcntl (fd [0], F_SETFL, O_NONBLOCK) - || fcntl (fd [1], F_SETFL, O_NONBLOCK)) - return 0; - - return 1; -} - #endif -#if __ia64 -# define STACKSIZE 65536 -#elif __i386 || __x86_64 /* 16k is unreasonably high :( */ -# define STACKSIZE PTHREAD_STACK_MIN -#else -# define STACKSIZE 16384 -#endif