Index: Modules/socketmodule.h =================================================================== --- Modules/socketmodule.h (revision 71503) +++ Modules/socketmodule.h (working copy) @@ -32,6 +32,10 @@ # endif /* IPPROTO_IPV6 */ #endif /* MS_WINDOWS */ +#if (defined(__hpux) && defined(__ia64)) +typedef int socklen_t; +#endif /* HPUX ia64 */ + #ifdef HAVE_SYS_UN_H # include #else