Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -1464,13 +1464,20 @@ AC_CHECK_MEMBER(struct sockaddr_un.sun_path, [ AC_DEFINE(OF_HAVE_UNIX_SOCKETS, 1, [Whether we have UNIX sockets]) AC_SUBST(USE_SRCS_UNIX_SOCKETS, '${SRCS_UNIX_SOCKETS}') ], [], [ + #ifdef OF_HAVE_SYS_TYPES_H + # include + #endif #ifdef OF_HAVE_SYS_UN_H # include #endif + + #ifdef __morphos__ + # error MorphOS has the struct but does not support it + #endif ]) AC_CHECK_FUNCS(paccept accept4, break) AC_CHECK_FUNCS(kqueue1 kqueue, [ Index: src/OFSocket.h ================================================================== --- src/OFSocket.h +++ src/OFSocket.h @@ -132,11 +132,11 @@ # define sipx_network sa_netnum # define sipx_node sa_nodenum # define sipx_port sa_socket #endif -#ifndef OF_HAVE_UNIX_SOCKETS +#if !defined(OF_HAVE_UNIX_SOCKETS) && !defined(OF_MORPHOS) struct sockaddr_un { sa_family_t sun_family; char sun_path[108]; }; #endif